Open Journal Systems  3.3.0
Omnipay\Common\Http\ClientInterface Interface Reference
Inheritance diagram for Omnipay\Common\Http\ClientInterface:
Omnipay\Common\Http\Client

Public Member Functions

 request ( $method, $uri, array $headers=[], $body=null, $protocolVersion='1.1')
 

Detailed Description

Member Function Documentation

◆ 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
RequestExceptionwhen the HTTP client is passed a request that is invalid and cannot be sent.
NetworkExceptionif 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: