@@ -14,44 +14,44 @@ |
||
| 14 | 14 | |
| 15 | 15 | abstract class Http |
| 16 | 16 | { |
| 17 | - const HEAD = 'HEAD'; |
|
| 18 | - const GET = 'GET'; |
|
| 19 | - const POST = 'POST'; |
|
| 20 | - const PUT = 'PUT'; |
|
| 21 | - const DELETE = 'DELETE'; |
|
| 22 | - const PATCH = 'PATCH'; |
|
| 23 | - const OPTIONS = 'OPTIONS'; |
|
| 24 | - const TRACE = 'TRACE'; |
|
| 25 | - public static $methods = array( |
|
| 26 | - 'HEAD' => self::HEAD, |
|
| 27 | - 'GET' => self::GET, |
|
| 28 | - 'POST' => self::POST, |
|
| 29 | - 'PUT' => self::PUT, |
|
| 30 | - 'DELETE' => self::DELETE, |
|
| 31 | - 'PATCH' => self::PATCH, |
|
| 32 | - 'OPTIONS' => self::OPTIONS, |
|
| 33 | - 'TRACE' => self::TRACE, |
|
| 34 | - ); |
|
| 17 | + const HEAD = 'HEAD'; |
|
| 18 | + const GET = 'GET'; |
|
| 19 | + const POST = 'POST'; |
|
| 20 | + const PUT = 'PUT'; |
|
| 21 | + const DELETE = 'DELETE'; |
|
| 22 | + const PATCH = 'PATCH'; |
|
| 23 | + const OPTIONS = 'OPTIONS'; |
|
| 24 | + const TRACE = 'TRACE'; |
|
| 25 | + public static $methods = array( |
|
| 26 | + 'HEAD' => self::HEAD, |
|
| 27 | + 'GET' => self::GET, |
|
| 28 | + 'POST' => self::POST, |
|
| 29 | + 'PUT' => self::PUT, |
|
| 30 | + 'DELETE' => self::DELETE, |
|
| 31 | + 'PATCH' => self::PATCH, |
|
| 32 | + 'OPTIONS' => self::OPTIONS, |
|
| 33 | + 'TRACE' => self::TRACE, |
|
| 34 | + ); |
|
| 35 | 35 | |
| 36 | - abstract function post($uri, array $payload = array(), array $options = array()); |
|
| 36 | + abstract function post($uri, array $payload = array(), array $options = array()); |
|
| 37 | 37 | |
| 38 | - abstract function patch($uri, array $payload = array(), array $options = array()); |
|
| 38 | + abstract function patch($uri, array $payload = array(), array $options = array()); |
|
| 39 | 39 | |
| 40 | - abstract function put($uri, array $payload = array(), array $options = array()); |
|
| 40 | + abstract function put($uri, array $payload = array(), array $options = array()); |
|
| 41 | 41 | |
| 42 | - abstract function get($uri, array $options = array()); |
|
| 42 | + abstract function get($uri, array $options = array()); |
|
| 43 | 43 | |
| 44 | - abstract function head($uri, array $options = array()); |
|
| 44 | + abstract function head($uri, array $options = array()); |
|
| 45 | 45 | |
| 46 | - abstract function delete($uri, array $options = array()); |
|
| 46 | + abstract function delete($uri, array $options = array()); |
|
| 47 | 47 | |
| 48 | - abstract function options($uri, array $options = array()); |
|
| 48 | + abstract function options($uri, array $options = array()); |
|
| 49 | 49 | |
| 50 | - abstract function trace($uri, array $options = array()); |
|
| 50 | + abstract function trace($uri, array $options = array()); |
|
| 51 | 51 | |
| 52 | - public static function isHaveBody() |
|
| 53 | - { |
|
| 54 | - return array(self::POST, self::PUT, self::PATCH); |
|
| 55 | - } |
|
| 52 | + public static function isHaveBody() |
|
| 53 | + { |
|
| 54 | + return array(self::POST, self::PUT, self::PATCH); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |