Detailed Description
Definition at line 481 of file http.php.
Member Function Documentation
Test to see if the packet from the socket is the last one.
- Parameters:
-
| string | $packet | Chunk to interpret. |
- Returns:
- boolean True if empty or EOF. private
Definition at line 617 of file http.php.
Splits up the headers and the rest of the content.
- Parameters:
-
| string | $raw | Content to parse. private |
Definition at line 516 of file http.php.
Reads the whole of the socket output into a single string.
- Parameters:
-
- Returns:
- string Raw output if successful else false. private
Definition at line 602 of file http.php.
Accessor for the content after the last header line.
- Returns:
- string All content. public
Definition at line 571 of file http.php.
Accessor for header block. The response is the combination of this and the content.
- Returns:
- SimpleHeaders Wrapped header block. public
Definition at line 581 of file http.php.
Original request method.
- Returns:
- string GET, POST or HEAD. public
Definition at line 534 of file http.php.
Accessor for any new cookies.
- Returns:
- array List of new cookies. public
Definition at line 590 of file http.php.
Original request data.
- Returns:
- mixed Sent content. public
Definition at line 552 of file http.php.
Raw request that was sent down the wire.
- Returns:
- string Bytes actually sent. public
Definition at line 561 of file http.php.
Constructor. Reads and parses the incoming content and headers.
- Parameters:
-
| SimpleSocket | $socket | Network connection to fetch response text from. |
| SimpleUrl | $url | Resource name. |
| mixed | $encoding | Record of content sent. public |
Definition at line 497 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