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

Public Member Functions

 SimpleProxyRoute ($url, $proxy, $username=false, $password=false)
 _getRequestLine ($method)
 _getHostLine ()
createConnection ($method, $timeout)

Data Fields

 $_proxy
 $_username
 $_password

Detailed Description

Definition at line 115 of file http.php.


Member Function Documentation

Creates the host part of the request.

Parameters:
SimpleUrl$urlURL as object.
Returns:
string Host line content. protected

Reimplemented from SimpleRoute.

Definition at line 156 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.
SimpleUrl$urlURL as object.
Returns:
string Request line content. protected

Reimplemented from SimpleRoute.

Definition at line 142 of file http.php.

Here is the call graph for this function:

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 from SimpleRoute.

Definition at line 169 of file http.php.

Here is the call graph for this function:

SimpleProxyRoute ( url,
proxy,
username = false,
password = false 
)

Stashes the proxy address.

Parameters:
SimpleUrl$urlURL as object.
string$proxyProxy URL.
string$usernameUsername for autentication.
string$passwordPassword for autentication. public

Definition at line 128 of file http.php.

Here is the call graph for this function:


Field Documentation

$_password

Definition at line 118 of file http.php.

$_proxy

Definition at line 116 of file http.php.

$_username

Definition at line 117 of file http.php.


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