| 1 | <?php |
||
| 12 | class RequestFactory |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Creates a PSR-7 Request instance. |
||
| 16 | * |
||
| 17 | * @param null|string $method HTTP method for the request. |
||
| 18 | * @param null|string $uri URI for the request. |
||
| 19 | * @param array $headers Headers for the message. |
||
| 20 | * @param string|resource|StreamInterface $body Message body. |
||
| 21 | * @param string $version HTTP protocol version. |
||
| 22 | * @return Request |
||
| 23 | */ |
||
| 24 | public function getRequest( |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Parses simplified options. |
||
| 36 | * |
||
| 37 | * @param array $options |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | protected function parseOptions(array $options) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Creates a request using a simplified array of options. |
||
| 54 | * |
||
| 55 | * @param null|string $method |
||
| 56 | * @param null|string $uri |
||
| 57 | * @param array $options |
||
| 58 | * @return Request |
||
| 59 | */ |
||
| 60 | public function getRequestWithOptions($method, $uri, array $options = []) |
||
| 72 | } |
||
| 73 |