Detailed Description
Definition at line 196 of file http.php.
Member Function Documentation
Wraps the socket in a response parser.
- Parameters:
-
- Returns:
- SimpleHttpResponse Parsed response object. protected
Definition at line 281 of file http.php.
Sends the headers.
- Parameters:
-
| SimpleSocket | $socket | Open socket. |
| string | $method | HTTP request method, usually GET. |
| SimpleFormEncoding | $encoding | Content to send with request. private |
Definition at line 243 of file http.php.
Adds a header line to the request.
- Parameters:
-
| string | $header_line | Text of full header line. public |
Definition at line 260 of file http.php.
Dispatches the content to the route's socket.
- Parameters:
-
| integer | $timeout | Connection timeout. |
- Returns:
- SimpleHttpResponse A response which may only have an error, but hopefully has a complete web page. public
Definition at line 226 of file http.php.
Reads all the relevant cookies from the cookie jar.
- Parameters:
-
Definition at line 271 of file http.php.
Builds the socket request from the different pieces. These include proxy information, URL, cookies, headers, request method and choice of encoding.
- Parameters:
-
| SimpleRoute | $route | Request route. |
| SimpleFormEncoding | $encoding | Content to send with request. public |
Definition at line 211 of file http.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/simpletestlib/http.php