|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Collaboration diagram for Slim_Http_Response:Public Member Functions | |
| __construct (Slim_Http_Request $req) | |
| Constructor. More... | |
| httpVersion ( $version=null) | |
| Set and/or get the HTTP response version. More... | |
| status ( $status=null) | |
| Set and/or get the HTTP response status code. More... | |
| headers () | |
| Get HTTP response headers. More... | |
| header ( $key, $value=null) | |
| Get and/or set an HTTP response header. More... | |
| body ( $body=null) | |
| Set the HTTP response body. More... | |
| write ( $body) | |
| Append the HTTP response body. More... | |
| setCookieJar (Slim_Http_CookieJar $cookieJar) | |
| Set cookie jar. More... | |
| getCookieJar () | |
| Get cookie jar. More... | |
| finalize () | |
| Finalize response headers before response is sent. More... | |
| canHaveBody () | |
| Can this HTTP response have a body? More... | |
| send () | |
| Send HTTP response. More... | |
Static Public Member Functions | |
| static | getMessageForCode ( $status) |
| Get message for HTTP status code. More... | |
Protected Member Functions | |
| sendHeaders () | |
| Send headers for HTTP response. More... | |
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().
Here is the call graph for this function:| 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, body(), and write().
Referenced by body(), finalize(), and write().
Here is the call graph for this function:
Here is the caller graph for this function:| Slim_Http_Response::canHaveBody | ( | ) |
Can this HTTP response have a body?
Definition at line 270 of file Response.php.
References status().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| Slim_Http_Response::getCookieJar | ( | ) |
Get cookie jar.
Definition at line 243 of file Response.php.
References $cookieJar.
Referenced by sendHeaders().
Here is the caller graph for this function:
|
static |
Get message for HTTP status code.
Definition at line 262 of file Response.php.
| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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, and httpVersion().
Referenced by httpVersion(), and sendHeaders().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, $status, and status().
Referenced by canHaveBody(), finalize(), sendHeaders(), and status().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().