[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Gdata/App/ -> LoggingHttpClientAdapterSocket.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 119 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Gdata_App_LoggingHttpClientAdapterSocket:: (5 methods):
  log()
  connect()
  write()
  read()
  close()


Class: Zend_Gdata_App_LoggingHttpClientAdapterSocket  - X-Ref

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.

log($message)   X-Ref
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.

param: string $message The message to log

connect($host, $port = 80, $secure = false)   X-Ref
Connect to the remote server

param: string  $host
param: int     $port
param: boolean $secure
param: int     $timeout

write($method, $uri, $http_ver = '1.1', $headers = array()   X-Ref
Send request to the remote server

param: string        $method
param: Zend_Uri_Http $uri
param: string        $http_ver
param: array         $headers
param: string        $body
return: string Request as string

read()   X-Ref
Read response from server

return: string

close()   X-Ref
Close the connection to the server




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1