|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| SimpleRoute ($url) | |
| getUrl () | |
| _getRequestLine ($method) | |
| _getHostLine () | |
| & | createConnection ($method, $timeout) |
| & | _createSocket ($scheme, $host, $port, $timeout) |
Data Fields | |
| $_url | |
| & _createSocket | ( | $ | scheme, |
| $ | host, | ||
| $ | port, | ||
| $ | timeout | ||
| ) |
Factory for socket.
| string | $scheme | Protocol to use. |
| string | $host | Hostname to connect to. |
| integer | $port | Remote port. |
| integer | $timeout | Connection timeout. |
Definition at line 99 of file http.php.

| _getHostLine | ( | ) |
Creates the host part of the request.
Reimplemented in SimpleProxyRoute.
Definition at line 60 of file http.php.

| _getRequestLine | ( | $ | method | ) |
Creates the first line which is the actual request.
| string | $method | HTTP request method, usually GET. |
Reimplemented in SimpleProxyRoute.
Definition at line 50 of file http.php.

| & createConnection | ( | $ | method, |
| $ | timeout | ||
| ) |
Opens a socket to the route.
| string | $method | HTTP request method, usually GET. |
| integer | $timeout | Connection timeout. |
Reimplemented in SimpleProxyRoute.
Definition at line 75 of file http.php.

| getUrl | ( | ) |
| SimpleRoute | ( | $ | url | ) |