API Documentation

Zend/Gdata/App/LoggingHttpClientAdapterSocket.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Gdata  
Subpackage
App  
Version
$Id: LoggingHttpClientAdapterSocket.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Gdata_App_LoggingHttpClientAdapterSocket

Package: Zend\Gdata\App

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.

Parent(s)
\Zend_Http_Client_Adapter_Socket
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedresource|null  $log_handle= 'null'

The file handle for writing logs

Default valuenullDetails
Type
resourcenull

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
methodprotectedlog( string $message ) : void

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.

Parameters
Name Type Description
$message string

The message to log

methodpublicread( ) : string

Read response from server

Returns
Type Description
string
methodpublicwrite( string $method, \Zend_Uri_Http $uri, string $http_ver = '1.1', array $headers = array(), string $body = '' ) : string

Send request to the remote server

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