API Documentation

Gdata/App/LoggingHttpClientAdapterSocket.php

Includes Functions Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
App
version
$Id: LoggingHttpClientAdapterSocket.php 20096 2010-01-06 02:05:09Z bkarwin $
Functions
write
read
close
Classes
Zend_Gdata_App_LoggingHttpClientAdapterSocket

Description

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.

Functions

close

close( ) :

Close the connection to the server

read

read( ) : string

Read response from server

Output

string

write

write( string $method, Zend_Uri_Http $uri, string $http_ver = 1.1, array $headers = array, string $body ) : string

Send request to the remote server

Arguments

$method
string
$uri
Zend_Uri_Http
$http_ver
string
$headers
array
$body
string

Output

string
Request as string

Zend_Gdata_App_LoggingHttpClientAdapterSocket

Extends from
Zend_Http_Client_Adapter_Socket
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
App
Properties
$log_handle
Methods
log
connect

Description

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.

Properties

$log_handle

resource|null $log_handle = 'null'

The file handle for writing logs

Details

$log_handle
resource|null
visibility
protected
default
null
final
false
static
false

Methods

connect

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

Connect to the remote server

Arguments
$host
string
$port
int
$secure
boolean
Details
visibility
public
final
false
static
false

log

log( string $message ) :

Log the given message to the log file. The log file is configured as the config param 'logfile'. This method opens the file for writing if necessary.

Arguments
$message
string
The message to log
Details
visibility
protected
final
false
static
false
Documentation was generated by DocBlox.