PHP WebSocket2 Library
PHP5 Library for browsing web
WebResponse Class Reference

Web server response wrapper class. More...

Public Member Functions

 __construct ($contents)
 Constructor. More...
 
 getRawContents ()
 Returns raw response string (including headers). More...
 
 setRawContents ($contents)
 Sets raw response string (including headers). More...
 
 getBody ()
 Returns response body. More...
 
 getHeadersData ()
 Returns response headers. More...
 
 getHttpCode ()
 Returns HTTP response code. More...
 

Detailed Description

Web server response wrapper class.

Examples:
redirection_interception.php.

Constructor & Destructor Documentation

__construct (   $contents)

Constructor.

Parameters
string$contentsRaw response string (including headers)

Member Function Documentation

getBody ( )

Returns response body.

Return values
stringResponse body
getHeadersData ( )

Returns response headers.

Return values
stringResponse headers
getHttpCode ( )

Returns HTTP response code.

Return values
intHTTP response code
getRawContents ( )

Returns raw response string (including headers).

Return values
stringRaw response string (including headers)
setRawContents (   $contents)

Sets raw response string (including headers).

Parameters
string$contentsRaw response string (including headers)

The documentation for this class was generated from the following file: