Class Response
Core response: - http response wrapper carrying response headers and response body - sending response at application terminate process by Send(); method - completing MvcCore performance custom header at response sending
public static
|
#
GetInstance( integer $code = self::OK, array $headers = array(), string $body = '' )
Get everytime new instance of http response. |
public
|
#
__construct( integer $code = self::OK, array $headers = array(), string $body = '' )
Create new http response instance. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
protected
|
integer |
OK
|
#
200
|
integer |
MOVED_PERMANENTLY
|
#
301
|
integer |
SEE_OTHER
|
#
303
|
integer |
NOT_FOUND
|
#
404
|
integer |
INTERNAL_SERVER_ERROR
|
#
500
|
public static
array
|
$CodeMessages
|
#
array(
self::OK => 'OK',
self::MOVED_PERMANENTLY => 'Moved Permanently',
self::SEE_OTHER => 'See Other',
self::NOT_FOUND => 'Not Found',
self::INTERNAL_SERVER_ERROR => 'Internal Server Error',
)
|
public
integer
|
$Code
Response http code |
#
self::OK
|
public
array
|
$Headers
Response http headers |
#
array()
|
public
string
|
$Body
Response http body |
#
''
|