Moodle  2.2.1
http://www.collinsharper.com
SimpleRoute Class Reference
Inheritance diagram for SimpleRoute:

Public Member Functions

 SimpleRoute ($url)
 getUrl ()
 _getRequestLine ($method)
 _getHostLine ()
createConnection ($method, $timeout)
_createSocket ($scheme, $host, $port, $timeout)

Data Fields

 $_url

Detailed Description

Definition at line 23 of file http.php.


Member Function Documentation

& _createSocket ( scheme,
host,
port,
timeout 
)

Factory for socket.

Parameters:
string$schemeProtocol to use.
string$hostHostname to connect to.
integer$portRemote port.
integer$timeoutConnection timeout.
Returns:
SimpleSocket/SimpleSecureSocket New socket. protected

Definition at line 99 of file http.php.

Here is the caller graph for this function:

Creates the host part of the request.

Returns:
string Host line content. protected

Reimplemented in SimpleProxyRoute.

Definition at line 60 of file http.php.

Here is the caller graph for this function:

_getRequestLine ( method)

Creates the first line which is the actual request.

Parameters:
string$methodHTTP request method, usually GET.
Returns:
string Request line content. protected

Reimplemented in SimpleProxyRoute.

Definition at line 50 of file http.php.

Here is the caller graph for this function:

& createConnection ( method,
timeout 
)

Opens a socket to the route.

Parameters:
string$methodHTTP request method, usually GET.
integer$timeoutConnection timeout.
Returns:
SimpleSocket New socket. public

Reimplemented in SimpleProxyRoute.

Definition at line 75 of file http.php.

Here is the call graph for this function:

getUrl ( )

Resource name.

Returns:
SimpleUrl Current url. protected

Definition at line 40 of file http.php.

Here is the caller graph for this function:

SimpleRoute ( url)

Sets the target URL.

Parameters:
SimpleUrl$urlURL as object. public

Definition at line 31 of file http.php.

Here is the caller graph for this function:


Field Documentation

$_url

Definition at line 24 of file http.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations