ClassInterface JHttpTransport

Description

HTTP transport class interface.

  • since: 11.3

Located in /libraries/joomla/http/transport.php (line 19)


	
			
Method Summary
 static boolean isSupported ()
 JHttpTransport __construct (JRegistry $options)
 JHttpResponse request (string $method, JUri $uri, [mixed $data = null], [array $headers = null], [integer $timeout = null], [string $userAgent = null])
Methods
static isSupported (line 53)

Method to check if HTTP transport is available for use

  • return: True if available else false
  • since: 12.1
  • access: public
static boolean isSupported ()
Constructor __construct (line 28)

Constructor.

  • since: 11.3
  • access: public
JHttpTransport __construct (JRegistry $options)
request (line 44)

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

  • since: 11.3
  • access: public
JHttpResponse request (string $method, JUri $uri, [mixed $data = null], [array $headers = null], [integer $timeout = null], [string $userAgent = null])
  • string $method: The HTTP method for sending the request.
  • JUri $uri: The URI to the resource to request.
  • mixed $data: Either an associative array or a string to be sent with the request.
  • array $headers: An array of request headers to send with the request.
  • integer $timeout: Read timeout in seconds.
  • string $userAgent: The optional user agent string to send with the request.

Documentation generated on Tue, 19 Nov 2013 15:16:00 +0100 by phpDocumentor 1.4.3