API Documentation

Http/Client/Adapter/Interface.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Http  
subpackage
Client_Adapter  
version
$Id: Interface.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Http_Client_Adapter_Interface

An interface description for Zend_Http_Client_Adapter classes.

These classes are used as connectors for Zend_Http_Client, performing the tasks of connecting, writing, reading and closing connection to the server.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Http  
subpackage
Client_Adapter  

Methods

methodpublicclose( ) : void

Close the connection to the server

methodpublicconnect( string $host, int $port = 80, boolean $secure = false ) : void

Connect to the remote server

Parameters
Name Type Description
$host string
$port int
$secure boolean
methodpublicread( ) : string

Read response from server

Returns
Type Description
string
methodpublicsetConfig( array $config = array ) : void

Set the configuration array for the adapter

Parameters
Name Type Description
$config array
methodpublicwrite( string $method, \Zend_Uri_Http $url, string $http_ver = 1.1, array $headers = array, string $body ) : string

Send request to the remote server

Parameters
Name Type Description
$method string
$url \Zend_Uri_Http
$http_ver string
$headers array
$body string
Returns
Type Description
string Request as text
Documentation was generated by DocBlox 0.13.3.