|
| | request ( $method, $uri, array $headers=[], $body=null, $protocolVersion='1.1') |
| |
◆ request()
| Omnipay\Common\Http\ClientInterface::request |
( |
|
$method, |
|
|
|
$uri, |
|
|
array |
$headers = [], |
|
|
|
$body = null, |
|
|
|
$protocolVersion = '1.1' |
|
) |
| |
Creates a new PSR-7 request.
- Parameters
-
| string | $method | |
| string | UriInterface | $uri | |
| array | $headers | |
| resource | string | StreamInterface | null | $body | |
| string | $protocolVersion | |
- Exceptions
-
| RequestException | when the HTTP client is passed a request that is invalid and cannot be sent. |
| NetworkException | if there is an error with the network or the remote server cannot be reached. |
- Returns
- ResponseInterface
Implemented in Omnipay\Common\Http\Client.
The documentation for this interface was generated from the following file: