Class SimpleRoute

Description

Creates HTTP headers for the end point of a HTTP request.

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


	
			
Direct descendents
Class Description
 class SimpleProxyRoute Creates HTTP headers for the end point of a HTTP request via a proxy server.
Variable Summary
 mixed $_url
Method Summary
 SimpleRoute SimpleRoute (SimpleUrl $url)
 SimpleSocket &createConnection (string $method, integer $timeout)
 SimpleSocket/SimpleSecureSocket &_createSocket (string $scheme, string $host, integer $port, integer $timeout)
 string _getHostLine ()
 string _getRequestLine (string $method)
Variables
mixed $_url (line 229)
Methods
Constructor SimpleRoute (line 236)

Sets the target URL.

  • access: public
SimpleRoute SimpleRoute (SimpleUrl $url)
createConnection (line 280)

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.

Redefined in descendants as:
getUrl (line 245)

Resource name.

  • return: Current url.
  • access: protected
SimpleUrl getUrl ()
_createSocket (line 304)

Factory for socket.

  • return: New socket.
  • access: protected
SimpleSocket/SimpleSecureSocket &_createSocket (string $scheme, string $host, integer $port, integer $timeout)
  • string $scheme: Protocol to use.
  • string $host: Hostname to connect to.
  • integer $port: Remote port.
  • integer $timeout: Connection timeout.
_getHostLine (line 265)

Creates the host part of the request.

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

Redefined in descendants as:
_getRequestLine (line 255)

Creates the first line which is the actual request.

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

Redefined in descendants as:

Documentation generated on Thu, 20 Jan 2005 17:10:03 +0000 by phpDocumentor 1.3.0RC3