Http/Client/Adapter/Interface.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com) + +
- License
- New BSD License + +
- Package
- Zend_Http + +
- Subpackage
- Client_Adapter + +
- Version
- $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $ + +
\Zend_Http_Client_Adapter_Interface
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-2012 Zend Technologies USA Inc. (http://www.zend.com) + +
- License
- New BSD License + +
Methods

connect(string $host, int $port = 80, boolean $secure = false) : voidConnect to the remote server
| Name | Type | Description |
|---|---|---|
| $host | string | |
| $port | int | |
| $secure | boolean |

setConfig(array $config = array()) : voidSet the configuration array for the adapter
| Name | Type | Description |
|---|---|---|
| $config | array |

write(string $method, \Zend_Uri_Http $url, string $http_ver = '1.1', array $headers = array(), string $body = '') : stringSend request to the remote server
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $url | \Zend_Uri_Http | |
| $http_ver | string | |
| $headers | array | |
| $body | string |
| Type | Description |
|---|---|
| string | Request as text |