Class SS_HTTPResponse
Represents a response returned by a controller.
Direct known subclasses
Methods summary
public
|
#
__construct( mixed $body = null, mixed $statusCode = null, mixed $statusDescription = null )
Create a new HTTP response |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
#
removeHeader( unknown_type $header )
Remove an existing HTTP header by its name, e.g. "Content-Type". |
public
|
|
public
|
|
public
|
#
isFinished( )
Returns true if this response is "finished", that is, no more script execution should be done. Specifically, returns true if a redirect has already been requested |
public
|
Magic methods summary
Properties summary
protected static
array
|
$status_codes | |
protected static
array
|
$redirect_codes | |
protected
integer
|
$statusCode | |
protected
string
|
$statusDescription | |
protected
array
|
$headers |
#
HTTP Headers like "Content-Type: text/xml" |
protected
string
|
$body |