Class SimplePie_HTTP_Parser
HTTP Response Parser
Package: SimplePie\HTTP
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/HTTP/Parser.php
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/HTTP/Parser.php
public
|
#
__construct( string $data )
Create an instance of the class with the input data Parameters
|
public
boolean
|
|
protected
boolean
|
|
protected
boolean
|
#
is_linear_whitespace( )
See if the next character is LWS Returnsboolean true if the next character is LWS, false if not |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
public
float
|
$http_version | 0.0 |
#
HTTP Version |
public
integer
|
$status_code | 0 |
#
Status code |
public
string
|
$reason | '' |
#
Reason phrase |
public
array
|
$headers | array() |
#
Key/value pairs of the headers |
public
string
|
$body | '' |
#
Body of the response |
protected
string
|
$state | 'http_version' |
#
Current state of the state machine |
protected
string
|
$data | '' |
#
Input data |
protected
integer
|
$data_length | 0 |
#
Input data length (to avoid calling strlen() everytime this is needed) |
protected
integer
|
$position | 0 |
#
Current position of the pointer |
protected
string
|
$name | '' |
#
Name of the hedaer currently being parsed |
protected
string
|
$value | '' |
#
Value of the hedaer currently being parsed |