## Zend_Http_Client_File

Description

HTTP client implementation that reads from files and fakes HTTP responses.

This may be useful for testing.

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

Located in /Zend/Http/Client/File.php (line 37)

    Zend_Http_Client_Abstract
       |
       --Zend_Http_Client_File

Variable Summary
mixed $_filename
Method Summary
void __construct ([ $uri = null], [array $headers = array()], null|string|Zend_Uri $filename)
Zend_Http_Response delete ()
Zend_Http_Response get ()
Zend_Http_Response post (string $data)
Zend_Http_Response put (string $data)
void setFilename (string $filename)
Variables
mixed $_filename = '' (line 39)

- access: protected

#### Inherited Variables

Inherited from Zend_Http_Client_Abstract

> Zend_Http_Client_Abstract::$_headers
> Zend_Http_Client_Abstract::$_timeout
> Zend_Http_Client_Abstract::$_uri

Methods
Constructor __construct (line 51)

Class Constructor

ZHttp_ClientFile file ignores URIs. The setUri() method is simply ignored. The filename to read may be set by setFilename().

- access: public

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

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

Redefinition of:

Zend_Http_Client_Abstract::__construct()
  Class Constructor, create and validate Zend_Uri object

delete (line 149)

Send a DELETE HTTP Request

- access: public

Zend_Http_Response delete ()

Redefinition of:

Zend_Http_Client_Abstract::delete()
  Send a DELETE HTTP Request

get (line 84)

Send a GET HTTP Request

- access: public

Zend_Http_Response get ()

Redefinition of:

Zend_Http_Client_Abstract::get()
  Send a GET HTTP Request

post (line 106)

Send a POST HTTP Request

- access: public

Zend_Http_Response post (string $data)

- string $data: Data to send in the request

Redefinition of:

Zend_Http_Client_Abstract::post()
  Send a POST HTTP Request

put (line 128)

Send a PUT HTTP Request

- access: public

Zend_Http_Response put (string $data)

- string $data: Data to send in the request

Redefinition of:

Zend_Http_Client_Abstract::put()
  Send a PUT HTTP Request

setFilename (line 69)

Sets the filename to read for get() response.

- access: public

void setFilename (string $filename)

- string $filename

#### Inherited Methods

Inherited From Zend_Http_Client_Abstract

> Zend_Http_Client_Abstract::__construct()
> Zend_Http_Client_Abstract::delete()
> Zend_Http_Client_Abstract::get()
> Zend_Http_Client_Abstract::getUri()
> Zend_Http_Client_Abstract::post()
> Zend_Http_Client_Abstract::put()
> Zend_Http_Client_Abstract::setHeaders()
> Zend_Http_Client_Abstract::setTimeout()
> Zend_Http_Client_Abstract::setUri()
> Zend_Http_Client_Abstract::validateHeaders()

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