Property | Type | Description | |
---|---|---|---|
$_httpMethodOverride | boolean | Use POST instead of PUT and DELETE, sending X-HTTP-Method-Override with the intended method name instead. | |
$_lastRequest | Horde_Http_Request_Base | The previous HTTP request. | |
$_lastResponse | Horde_Http_Response_Base | The most recent HTTP response. | |
$_request | Horde_Http_Request_Base | The current HTTP request. |
Method | Description | |
---|---|---|
__construct ( array $args = [] ) | Horde_Http_Client constructor. | |
__get ( string $name ) : mixed | Returns a client parameter. | |
__set ( string $name, mixed $value ) | Sets a client parameter. | |
delete ( string $uri = null, array $headers = [] ) : Horde_Http_Response_Base | Sends a DELETE request. | |
get ( string $uri = null, array $headers = [] ) : Horde_Http_Response_Base | Sends a GET request. | |
head ( string $uri = null, array $headers = [] ) : Horde_Http_Response_Base | Sends a HEAD request. | |
post ( string $uri = null, array | string $data = null, array $headers = [] ) : Horde_Http_Response_Base | Sends a POST request. | |
put ( string $uri = null, string $data = null, array $headers = [] ) : Horde_Http_Response_Base | Sends a PUT request. | |
request ( string $method, string | Horde_Url $uri = null, string | array $data = null, array $headers = [] ) : Horde_Http_Response_Base | Sends an HTTP request. |
public __construct ( array $args = [] ) | ||
$args | array | Any Http_Client settings to initialize in the constructor. See the class properties for available settings. |
public request ( string $method, string | Horde_Url $uri = null, string | array $data = null, array $headers = [] ) : Horde_Http_Response_Base | ||
$method | string | HTTP request method (GET, PUT, etc.) |
$uri | string | Horde_Url | URI to request, if different from $this->uri |
$data | string | array | Request data. Array of form data that will be encoded automatically, or a raw string. |
$headers | array | Any headers specific to this request. They will be combined with $this->_headers, and override headers of the same name for this request only. |
return | Horde_Http_Response_Base |
protected bool $_httpMethodOverride | ||
return | boolean |
protected Horde_Http_Request_Base $_lastRequest | ||
return | Horde_Http_Request_Base |
protected Horde_Http_Response_Base $_lastResponse | ||
return | Horde_Http_Response_Base |