Class SimpleProxyRoute

Description

Creates HTTP headers for the end point of a HTTP request via a proxy server.

Located in /libraries/pear/simpletest/http.php (line 318)

SimpleRoute
   |
   --SimpleProxyRoute
Variable Summary
 mixed $_password
 mixed $_proxy
 mixed $_username
Method Summary
 SimpleProxyRoute SimpleProxyRoute (SimpleUrl $url, string $proxy, [string $username = false], [string $password = false])
 SimpleSocket &createConnection (string $method, integer $timeout)
 string _getHostLine (SimpleUrl $url)
 string _getRequestLine (string $method, SimpleUrl $url)
Variables
mixed $_password (line 321)
mixed $_proxy (line 319)
mixed $_username (line 320)

Inherited Variables

Inherited from SimpleRoute

SimpleRoute::$_url
Methods
Constructor SimpleProxyRoute (line 331)

Stashes the proxy address.

  • access: public
SimpleProxyRoute SimpleProxyRoute (SimpleUrl $url, string $proxy, [string $username = false], [string $password = false])
  • SimpleUrl $url: URL as object.
  • string $proxy: Proxy URL.
  • string $username: Username for autentication.
  • string $password: Password for autentication.
createConnection (line 372)

Opens a socket to the route.

  • return: New socket.
  • access: public
SimpleSocket &createConnection (string $method, integer $timeout)
  • string $method: HTTP request method, usually GET.
  • integer $timeout: Connection timeout.

Redefinition of:
SimpleRoute::createConnection()
Opens a socket to the route.
_getHostLine (line 359)

Creates the host part of the request.

  • return: Host line content.
  • access: protected
string _getHostLine (SimpleUrl $url)

Redefinition of:
SimpleRoute::_getHostLine()
Creates the host part of the request.
_getRequestLine (line 345)

Creates the first line which is the actual request.

  • return: Request line content.
  • access: protected
string _getRequestLine (string $method, SimpleUrl $url)
  • string $method: HTTP request method, usually GET.
  • SimpleUrl $url: URL as object.

Redefinition of:
SimpleRoute::_getRequestLine()
Creates the first line which is the actual request.

Inherited Methods

Inherited From SimpleRoute

 SimpleRoute::SimpleRoute()
 SimpleRoute::createConnection()
 SimpleRoute::getUrl()
 SimpleRoute::_createSocket()
 SimpleRoute::_getHostLine()
 SimpleRoute::_getRequestLine()

Documentation generated on Fri, 11 Feb 2005 18:13:20 +0000 by phpDocumentor 1.3.0RC3