Class Zend_Http_Client_File

Description

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

This may be useful for testing.

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

Zend_Http_Client_Abstract
   |
   --Zend_Http_Client_File
Variable Summary
 mixed $_filename
Method Summary
 void __construct ([mixed $uri = null], [array $headers = array()], null|string|Zend_Uri $filename)
 Zend_Http_Response post (string $data)
 Zend_Http_Response put (string $data)
 void setFilename (string $filename)
Variables
mixed $_filename = '' (line 37)
  • 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 49)

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 ([mixed $uri = null], [array $headers = array()], null|string|Zend_Uri $filename)
  • null|string|Zend_Uri $filename
  • array $headers

Redefinition of:
Zend_Http_Client_Abstract::__construct()
Class Constructor, create and validate Zend_Uri object
delete (line 147)

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 82)

Send a GET HTTP Request

  • access: public

Redefinition of:
Zend_Http_Client_Abstract::get()
Send a GET HTTP Request
post (line 104)

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 126)

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 67)

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, 18 Apr 2006 11:54:59 -0700 by phpDocumentor 1.3.0RC3