Property | Type | Description | |
---|---|---|---|
$body | string | Body of the response | |
$data | string | Input data | |
$data_length | integer | Input data length (to avoid calling strlen() every time this is needed) | |
$headers | array | Key/value pairs of the headers | |
$http_version | float | HTTP Version | |
$name | string | Name of the hedaer currently being parsed | |
$position | integer | Current position of the pointer | |
$reason | string | Reason phrase | |
$state | string | Current state of the state machine | |
$status_code | integer | Status code | |
$value | string | Value of the hedaer currently being parsed |
Method | Description | |
---|---|---|
SimplePie_HTTP_Parser ( string $data ) | Create an instance of the class with the input data | |
body ( ) | Parse the body | |
has_data ( ) : boolean | Check whether there is data beyond the pointer | |
http_version ( ) | Parse the HTTP version | |
is_linear_whitespace ( ) : boolean | See if the next character is LWS | |
linear_whitespace ( ) | Parse LWS, replacing consecutive LWS characters with a single space | |
name ( ) | Parse a header name | |
new_line ( ) | Deal with a new line, shifting data around as needed | |
parse ( ) : boolean | Parse the input data | |
quote ( ) | See what state to move to while within quoted header values | |
quote_char ( ) | Parse a header value while within quotes | |
quote_escaped ( ) | Parse an escaped character within quotes | |
reason ( ) | Parse the reason phrase | |
status ( ) | Parse the status code | |
value ( ) | See what state to move to while within non-quoted header values | |
value_char ( ) | Parse a header value while outside quotes |
public SimplePie_HTTP_Parser ( string $data ) | ||
$data | string | Input data |
public is_linear_whitespace ( ) : boolean | ||
return | boolean | true if the next character is LWS, false if not |
public linear_whitespace ( ) |
public value ( ) |
public int $data_length | ||
return | integer |
public string $name | ||
return | string |
public string $value | ||
return | string |