TransportInterface

HTTP transport class interface.

since

1.0

package

Joomla Framework

Methods

isSupported

Method to check if HTTP transport layer available for using

isSupported() : 
static
since

1.0

Response

boolTrue if available else false

request

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

request( method, \Joomla\Uri\UriInterface uri,  data = null, mixed||string|int headers = [],  timeout = null,  userAgent = null) : \Joomla\Http\Response
since

1.0

Arguments

method

stringThe HTTP method for sending the request.

uri

UriInterfaceThe URI to the resource to request.

data

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

headers

array<string|int, mixed>An array of request headers to send with the request.

timeout

intRead timeout in seconds.

userAgent

stringThe optional user agent string to send with the request.

Response

Response