TransportInterface

HTTP transport class interface.

since

1.0

Methods

__construct

Constructor.

__construct(array|\ArrayAccess $options = array()) 
since

1.0

Arguments

$options

array|\ArrayAccessClient options object.

isSupported

Method to check if HTTP transport layer available for using

isSupported() : boolean
static
since

1.0

Response

booleanTrue if available else false

request

Send a request to the server and return a Response object with the response.

request(string $method, \Joomla\Uri\UriInterface $uri, mixed $data = null, array $headers = null, integer $timeout = null, string $userAgent = null) : \Joomla\Http\Response
since

1.0

Arguments

$method

stringThe HTTP method for sending the request.

$uri

\Joomla\Uri\UriInterfaceThe URI to the resource to request.

$data

mixedEither an associative array or a string to be sent with the request.

$headers

arrayAn array of request headers to send with the request.

$timeout

integerRead timeout in seconds.

$userAgent

stringThe optional user agent string to send with the request.

Response

\Joomla\Http\Response