Core Class
View Source on Trac ↗
Core Class
Parser
class Parser
// Constructor: function Object() { [native code] } HTTP Response Parser
Methods 18 methods
| Method / Return | Description |
|---|---|
| __construct() void | Create an instance of the class with the input data
Parameters: $data: mixed |
| parse() bool | Parse the input data |
| has_data() bool | Check whether there is data beyond the pointer |
| is_linear_whitespace() bool | See if the next character is LWS |
| http_version() void | Parse the HTTP version |
| status() void | Parse the status code |
| reason() void | Parse the reason phrase |
| new_line() void | Deal with a new line, shifting data around as needed |
| name() void | Parse a header name |
| linear_whitespace() void | Parse LWS, replacing consecutive LWS characters with a single space |
| value() void | See what state to move to while within non-quoted header values |
| value_char() void | Parse a header value while outside quotes |
| quote() void | See what state to move to while within quoted header values |
| quote_char() void | Parse a header value while within quotes |
| quote_escaped() void | Parse an escaped character within quotes |
| body() void | Parse the body |
| chunked() void | Parsed a "Transfer-Encoding: chunked" body |
| prepareHeaders() string | Prepare headers (take care of proxies headers)
Parameters: $headers: mixed, $count: mixed |
Properties
| Property / Type | Description |
|---|---|
| $http_version mixed public | No description available. |
| $status_code mixed public | No description available. |
| $reason mixed public | No description available. |
| $headers mixed public | No description available. |
| $body mixed public | No description available. |
| $state mixed public | No description available. |
| $data mixed public | No description available. |
| $data_length mixed public | No description available. |
| $position mixed public | No description available. |
| $name mixed public | No description available. |
| $value mixed public | No description available. |
Class Information
Source File
wp-includes/SimplePie/src/HTTP/Parser.php
Advertisement