ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct (Slim_Http_Request $req) | |
Constructor. | |
httpVersion ($version=null) | |
Set and/or get the HTTP response version. | |
status ($status=null) | |
Set and/or get the HTTP response status code. | |
headers () | |
Get HTTP response headers. | |
header ($key, $value=null) | |
Get and/or set an HTTP response header. | |
body ($body=null) | |
Set the HTTP response body. | |
write ($body) | |
Append the HTTP response body. | |
setCookieJar (Slim_Http_CookieJar $cookieJar) | |
Set cookie jar. | |
getCookieJar () | |
Get cookie jar. | |
finalize () | |
Finalize response headers before response is sent. | |
canHaveBody () | |
Can this HTTP response have a body? | |
send () | |
Send HTTP response. |
Static Public Member Functions | |
static | getMessageForCode ($status) |
Get message for HTTP status code. |
Protected Member Functions | |
sendHeaders () | |
Send headers for HTTP response. |
Protected Attributes | |
$request | |
$httpVersion = '1.1' | |
$status = 200 | |
$headers = array() | |
$body = '' | |
$length = 0 | |
$cookieJar |
Static Protected Attributes | |
static | $messages |
Definition at line 49 of file Response.php.
Slim_Http_Response::__construct | ( | Slim_Http_Request | $req | ) |
Constructor.
Definition at line 143 of file Response.php.
References header().
int Length of HTTP response Slim_Http_Response::body | ( | $body = null | ) |
Set the HTTP response body.
string | $body | The new HTTP response body |
Definition at line 208 of file Response.php.
References $body, and write().
Referenced by finalize(), and write().
Slim_Http_Response::canHaveBody | ( | ) |
Can this HTTP response have a body?
Definition at line 270 of file Response.php.
References status().
Referenced by send().
Slim_Http_Response::finalize | ( | ) |
Finalize response headers before response is sent.
Definition at line 251 of file Response.php.
References body(), headers(), and status().
Referenced by sendHeaders().
Slim_Http_Response::getCookieJar | ( | ) |
Get cookie jar.
Definition at line 243 of file Response.php.
References $cookieJar.
Referenced by sendHeaders().
|
static |
Slim_Http_Response::header | ( | $key, | |
$value = null |
|||
) |
Get and/or set an HTTP response header.
string | $key | The header name |
string | $value | The header value |
Definition at line 196 of file Response.php.
References headers().
Referenced by __construct(), sendHeaders(), and write().
array Key value array of HTTP response Slim_Http_Response::headers | ( | ) |
Get HTTP response headers.
Definition at line 186 of file Response.php.
References $headers.
Referenced by finalize(), header(), and sendHeaders().
Slim_Http_Response::httpVersion | ( | $version = null | ) |
Set and/or get the HTTP response version.
string | $version |
InvalidArgumentException | If argument is not a valid HTTP version |
Definition at line 154 of file Response.php.
References $httpVersion.
Referenced by sendHeaders().
Slim_Http_Response::send | ( | ) |
Send HTTP response.
This method will set Response headers, set Response cookies, and echo
the Response body to the current output buffer.
Definition at line 317 of file Response.php.
References $body, canHaveBody(), and sendHeaders().
|
protected |
Send headers for HTTP response.
Definition at line 278 of file Response.php.
References finalize(), getCookieJar(), header(), headers(), httpVersion(), and status().
Referenced by send().
Slim_Http_Response::setCookieJar | ( | Slim_Http_CookieJar | $cookieJar | ) |
Set cookie jar.
Slim_Http_CookieJar | $cookieJar |
Definition at line 235 of file Response.php.
References $cookieJar.
Slim_Http_Response::status | ( | $status = null | ) |
Set and/or get the HTTP response status code.
int | $status |
InvalidArgumentException | If argument is not a valid HTTP status code |
Definition at line 172 of file Response.php.
References $messages, and $status.
Referenced by canHaveBody(), finalize(), and sendHeaders().
Slim_Http_Response::write | ( | $body | ) |
Append the HTTP response body.
string | $body | Content to append to the current HTTP response body |
Definition at line 222 of file Response.php.
References $body, body(), and header().
Referenced by body().
|
protected |
Definition at line 74 of file Response.php.
|
protected |
Definition at line 138 of file Response.php.
Referenced by getCookieJar(), and setCookieJar().
|
protected |
Definition at line 69 of file Response.php.
Referenced by headers().
|
protected |
Definition at line 59 of file Response.php.
Referenced by httpVersion().
|
protected |
Definition at line 79 of file Response.php.
|
staticprotected |
Definition at line 84 of file Response.php.
|
protected |
Definition at line 54 of file Response.php.
|
protected |
Definition at line 64 of file Response.php.
Referenced by getMessageForCode(), and status().