Zend_Http_Client_Adapter_SocketImplements interfaces:
A sockets based (stream_socket_client) adapter class for Zend_Http_Client. Can be used on almost every PHP environment, and does not require any special extensions.
Located in /Http/Client/Adapter/Socket.php (line 47)
| Class | Description |
|---|---|
Zend_Http_Client_Adapter_Proxy
|
HTTP Proxy-supporting Zend_Http_Client adapter class, based on the default socket based adapter. |
Zend_Gdata_HttpAdapterStreamingSocket
|
Extends the default HTTP adapter to handle streams instead of discrete body strings. |
Zend_Gdata_App_LoggingHttpClientAdapterSocket
|
Overrides the traditional socket-based adapter class for Zend_Http_Client to enable logging of requests. All requests are logged to a location specified in the config as $config['logfile']. Requests and responses are logged after they are sent and received/processed, thus an error could prevent logging. |
string
write
(string $method, Zend_Uri_Http $uri, [string $http_ver = '1.1'], [array $headers = array()], [string $body = ''])
array
$config
= array(Parameters array
array
$connected_to
= array(null, null) (line 61)
What host/port are we connected to?
string
$method
= null (line 88)
Request method - will be set by write() and might be used by read()
resource
$out_stream
= null (line 68)
Stream for storing output
resource|null
$socket
= null (line 54)
The socket for server connection
resource
$_context
= null (line 95)
Stream context
Constructor __construct (line 101)
Adapter constructor, currently empty. Config is set using setConfig()
Destructor __destruct (line 538)
Destructor: make sure the socket is disconnected
If we are in persistent TCP mode, will not close the connection
close (line 491)
Close the connection to the server
connect (line 192)
Connect to the remote server
getConfig (line 132)
Retrieve the array of all configuration options
getStreamContext (line 176)
Get the stream context for the TCP connection to the server.
If no stream context is set, will create a default one.
read (line 315)
Read response from server
setConfig (line 110)
Set the configuration array for the adapter
setOutputStream (line 526)
Set output stream for the response
setStreamContext (line 150)
Set the stream context for the TCP connection to the server
Can accept either a pre-existing stream context resource, or an array of stream options, similar to the options array passed to the stream_context_create() PHP function. In such case a new stream context will be created using the passed options.
write (line 260)
Send request to the remote server
_checkSocketReadTimeout (line 504)
Check if the socket has timed out - if so close connection and throw an exception
Documentation generated on Tue, 26 Oct 2010 20:09:13 +0400 by phpDocumentor 1.4.2