friendship ended with social-app. php is my new best friend
1<?php
2
3namespace Fig\Http\Message;
4
5/**
6 * Defines constants for common HTTP request methods.
7 *
8 * Usage:
9 *
10 * <code>
11 * class RequestFactory implements RequestMethodInterface
12 * {
13 * public static function factory(
14 * $uri = '/',
15 * $method = self::METHOD_GET,
16 * $data = []
17 * ) {
18 * }
19 * }
20 * </code>
21 */
22interface RequestMethodInterface
23{
24 const METHOD_HEAD = 'HEAD';
25 const METHOD_GET = 'GET';
26 const METHOD_POST = 'POST';
27 const METHOD_PUT = 'PUT';
28 const METHOD_PATCH = 'PATCH';
29 const METHOD_DELETE = 'DELETE';
30 const METHOD_PURGE = 'PURGE';
31 const METHOD_OPTIONS = 'OPTIONS';
32 const METHOD_TRACE = 'TRACE';
33 const METHOD_CONNECT = 'CONNECT';
34}