Class SimpleRoute

Description

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

Located in /http.php (line 23)


	
			
Direct descendents
Class Description
 class SimpleProxyRoute Creates HTTP headers for the end point of a HTTP request via a proxy server.
Method Summary
 SimpleRoute __construct (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)
Methods
Constructor __construct (line 31)

Sets the target URL.

  • access: public
SimpleRoute __construct (SimpleUrl $url)

Redefined in descendants as:
createConnection (line 75)

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:
createSocket (line 99)

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 60)

Creates the host part of the request.

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

Redefined in descendants as:
getRequestLine (line 50)

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:
getUrl (line 40)

Resource name.

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

Documentation generated on Sun, 31 Oct 2010 16:31:38 -0500 by phpDocumentor 1.4.3