Moodle  2.2.1
http://www.collinsharper.com
SimpleHttpHeaders Class Reference

Public Member Functions

 SimpleHttpHeaders ($headers)
 getHttpVersion ()
 getRaw ()
 getResponseCode ()
 getLocation ()
 isRedirect ()
 isChallenge ()
 getMimeType ()
 getAuthentication ()
 getRealm ()
 writeCookiesToJar (&$jar, $url)
 _parseHeaderLine ($header_line)
 _parseCookie ($cookie_line)

Data Fields

 $_raw_headers
 $_response_code
 $_http_version
 $_mime_type
 $_location
 $_cookies
 $_authentication
 $_realm

Detailed Description

Definition at line 295 of file http.php.


Member Function Documentation

_parseCookie ( cookie_line)

Parse the Set-cookie content.

Parameters:
string$cookie_lineText after "Set-cookie:"
Returns:
SimpleCookie New cookie object. private

Definition at line 459 of file http.php.

Here is the caller graph for this function:

_parseHeaderLine ( header_line)

Called on each header line to accumulate the held data within the class.

Parameters:
string$header_lineOne line of header. protected

Definition at line 433 of file http.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Accessor for authentication type.

Returns:
string Type. public

Definition at line 397 of file http.php.

Accessor for parsed HTTP protocol version.

Returns:
integer HTTP error code. public

Definition at line 329 of file http.php.

Returns the redirected URL or false if no redirection.

Returns:
string URL or false for none. public

Definition at line 357 of file http.php.

Here is the caller graph for this function:

Accessor for MIME type header information.

Returns:
string MIME type. public

Definition at line 388 of file http.php.

getRaw ( )

Accessor for raw header block.

Returns:
string All headers as raw string. public

Definition at line 338 of file http.php.

getRealm ( )

Accessor for security realm.

Returns:
string Realm. public

Definition at line 406 of file http.php.

Accessor for parsed HTTP error code.

Returns:
integer HTTP error code. public

Definition at line 347 of file http.php.

Test to see if the response is an authentication challenge.

Returns:
boolean True if challenge. public

Definition at line 377 of file http.php.

Test to see if the response is a valid redirect.

Returns:
boolean True if valid redirect. public

Definition at line 366 of file http.php.

Here is the call graph for this function:

SimpleHttpHeaders ( headers)

Parses the incoming header block.

Parameters:
string$headersHeader block. public

Definition at line 310 of file http.php.

Here is the call graph for this function:

writeCookiesToJar ( &$  jar,
url 
)

Writes new cookies to the cookie jar.

Parameters:
SimpleCookieJar$jarJar to write to.
SimpleUrl$urlHost and path to write under. public

Definition at line 416 of file http.php.


Field Documentation

$_authentication

Definition at line 302 of file http.php.

$_cookies

Definition at line 301 of file http.php.

$_http_version

Definition at line 298 of file http.php.

$_location

Definition at line 300 of file http.php.

$_mime_type

Definition at line 299 of file http.php.

$_raw_headers

Definition at line 296 of file http.php.

$_realm

Definition at line 303 of file http.php.

$_response_code

Definition at line 297 of file http.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations