## Zend_Http_Client_Abstract

Description

- abstract:
- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Http/Client/Abstract.php (line 40)

Direct descendents

Class | Description
--- | ---
Zend_Http_Client |
Zend_Http_Client_File | HTTP client implementation that reads from files and fakes HTTP responses.

Variable Summary
array $_headers
int $_timeout
Zend_Uri $_uri
Method Summary
static void validateHeaders ([array $headers = array()])
void __construct ([string|Zend_Uri|null $uri = null], [array $headers = array()])
Zend_Http_Response delete ()
Zend_Http_Response get ()
Zend_Uri getUri ()
Zend_Http_Response post (string $data)
Zend_Http_Response put (string $data)
void setHeaders ([array $headers = array()])
void setTimeout (int $seconds)
void setUri (string|Zend_Uri $uri)
Variables
array $_headers = array() (line 61)

Additional HTTP headers to send.

- access: protected

int $_timeout = 10 (line 47)

Socket Connection Timeout

- var: Time in Seconds
- access: protected

Zend_Uri $_uri = null (line 54)

The Zend_Uri for the URI we are accessing.

- access: protected

Methods
static validateHeaders (line 73)

Validates that $headers is an array of strings, where each string is formed like "Field: value". An exception is thrown on failure.

An empty $headers array is valid and will not throw an exception.

- access: public
- throws: Zend_Http_Client_Exception

void validateHeaders ([array $headers = array()])

- array $headers

Constructor __construct (line 99)

Class Constructor, create and validate Zend_Uri object

- access: public
- abstract:

void __construct ([string|Zend_Uri|null $uri = null], [array $headers = array()])

- string|Zend_Uri|null $uri
- array $headers

Redefined in descendants as:

- Zend_Http_Client::__construct() : Class Constructor, create and validate Zend_Uri object
- Zend_Http_Client_File::__construct() : Class Constructor

delete (line 201)

Send a DELETE HTTP Request

- access: public
- abstract:

Zend_Http_Response delete ()

Redefined in descendants as:

- Zend_Http_Client::delete() : Send a DELETE HTTP Request
- Zend_Http_Client_File::delete() : Send a DELETE HTTP Request

get (line 175)

Send a GET HTTP Request

- access: public
- abstract:

Zend_Http_Response get ()

Redefined in descendants as:

- Zend_Http_Client::get() : Send a GET HTTP Request
- Zend_Http_Client_File::get() : Send a GET HTTP Request

getUri (line 133)

Get the Zend_Uri for this URI.

- access: public
- throws: Zend_Http_Client_Exception

Zend_Uri getUri ()
post (line 184)

Send a POST HTTP Request

- access: public
- abstract:

Zend_Http_Response post (string $data)

- string $data: Data to send in the request

Redefined in descendants as:

- Zend_Http_Client::post() : Send a POST HTTP Request
- Zend_Http_Client_File::post() : Send a POST HTTP Request

put (line 193)

Send a PUT HTTP Request

- access: public
- abstract:

Zend_Http_Response put (string $data)

- string $data: Data to send in the request

Redefined in descendants as:

- Zend_Http_Client::put() : Send a PUT HTTP Request
- Zend_Http_Client_File::put() : Send a PUT HTTP Request

setHeaders (line 148)

Set the $headers to send. Headers are supplied as an array of strings, where each string is a header formatted like "Field: value".

- access: public

void setHeaders ([array $headers = array()])

- array $headers

setTimeout (line 160)

Set Connection Timeout

- access: public

void setTimeout (int $seconds)

- int $seconds: Timeout in seconds

setUri (line 109)

Sets the URI of the remote site. Setting a new URI will automatically clear the response properties.

- access: public

void setUri (string|Zend_Uri $uri)

- string|Zend_Uri $uri

Documentation generated on Tue, 11 Jul 2006 12:16:22 -0500 by phpDocumentor 1.3.0RC6