Class Horde_Http_Client

Description

Located in /Http_Client/lib/Horde/Http/Client.php (line 17)


	
			
Direct descendents
Class Description
 class Horde_Http_Client_Mock
Variable Summary
Method Summary
 Horde_Http_Client __construct ([array $args = array()])
 Horde_Http_Client_Response delete ([ $uri = null], [ $headers = array()])
 Horde_Http_Client_Response get ([ $uri = null], [ $headers = array()])
 string getHeader (string $header)
 Horde_Http_Client_Response post ([ $uri = null], [ $data = null], [ $headers = array()])
 Horde_Http_Client_Response put ([ $uri = null], [ $data = null], [ $headers = array()])
 Horde_Http_Client_Response request (string $method, [string $uri = null], [mixed $data = null], [array $headers = array()])
 void setHeaders (mixed $headers, [string $value = null])
 mixed __get (string $name)
 void __set (string $name, mixed $value)
Variables
array $_headers = array() (line 29)

Request headers

  • access: protected
array $_lastRequest (line 60)

The most recent HTTP request

An array with these values: 'uri' 'method' 'headers' 'data'

  • access: protected
Horde_Http_Client_Response $_lastResponse (line 66)

The most recent HTTP response

  • access: protected
string $_proxyPass = null (line 47)

Proxy password

  • access: protected
string $_proxyServer = null (line 35)

Proxy server

  • access: protected
string $_proxyUser = null (line 41)

Proxy username

  • access: protected
string $_uri = null (line 23)

URI to make our next request to

  • access: protected
Methods
Constructor __construct (line 79)

Horde_Http_Client constructor.

  • access: public
Horde_Http_Client __construct ([array $args = array()])
  • array $args: Any Http_Client settings to initialize in the constructor. Available settings are: uri headers proxyServer proxyUser proxyPass
delete (line 154)

Send a DELETE request

  • access: public
Horde_Http_Client_Response delete ([ $uri = null], [ $headers = array()])
  • $uri
  • $headers
get (line 123)

Send a GET request

  • access: public
Horde_Http_Client_Response get ([ $uri = null], [ $headers = array()])
  • $uri
  • $headers
getHeader (line 113)

Get the current value of $header

  • return: current value
  • access: public
string getHeader (string $header)
  • string $header: Header name to get
post (line 133)

Send a POST request

  • access: public
Horde_Http_Client_Response post ([ $uri = null], [ $data = null], [ $headers = array()])
  • $uri
  • $data
  • $headers
put (line 143)

Send a PUT request

  • access: public
Horde_Http_Client_Response put ([ $uri = null], [ $data = null], [ $headers = array()])
  • $uri
  • $data
  • $headers
request (line 173)

Send an HTTP request

  • access: public
Horde_Http_Client_Response request (string $method, [string $uri = null], [mixed $data = null], [array $headers = array()])
  • string $method: HTTP request method (GET, PUT, etc.)
  • string $uri: URI to request, if different from $this->uri
  • mixed $data: Request data. Can be an array of form data that will be encoded automatically, or a raw string.
  • array $headers: Any headers specific to this request. They will be combined with $this->_headers, and override headers of the same name for this request only.

Redefined in descendants as:
setHeaders (line 96)

Set one or more headers

  • access: public
void setHeaders (mixed $headers, [string $value = null])
  • mixed $headers: A hash of header + value pairs, or a single header name
  • string $value: A header value
__get (line 227)

Get a client parameter

  • return: Parameter value.
  • access: public
mixed __get (string $name)
  • string $name: The parameter to get.
__set (line 238)

Set a client parameter

  • access: public
void __set (string $name, mixed $value)
  • string $name: The parameter to set.
  • mixed $value: Parameter value.

Documentation generated on Sun, 30 Jan 2011 05:15:49 +0000 by phpDocumentor 1.4.3