|
| __toString () |
| Magic __toString functionality.
|
|
| setHeader ($name, $value, $replace=false) |
| Set a header.
|
|
| setRedirect ($url, $code=302) |
| Set redirect URL.
|
|
| isRedirect () |
| Is this a redirect?
|
|
| getHeaders () |
| Return array of headers; see $_headers for format.
|
|
| clearHeaders () |
| Clear headers.
|
|
| clearHeader ($name) |
| Clears the specified HTTP header.
|
|
| setRawHeader ($value) |
| Set raw HTTP header.
|
|
| getRawHeaders () |
| Retrieve all raw HTTP headers.
|
|
| clearRawHeaders () |
| Clear all raw HTTP headers.
|
|
| clearRawHeader ($headerRaw) |
| Clears the specified raw HTTP header.
|
|
| clearAllHeaders () |
| Clear all headers, normal and raw.
|
|
| setHttpResponseCode ($code) |
| Set HTTP response code to use with headers.
|
|
| getHttpResponseCode () |
| Retrieve HTTP response code.
|
|
| canSendHeaders ($throw=false) |
| Can we send headers?
|
|
| sendHeaders () |
| Send all headers.
|
|
| setBody ($content, $name=null) |
| Set body content.
|
|
| appendBody ($content, $name=null) |
| Append content to the body content.
|
|
| clearBody ($name=null) |
| Clear body array.
|
|
| getBody ($spec=false) |
| Return the body content.
|
|
| append ($name, $content) |
| Append a named body segment to the body content array.
|
|
| prepend ($name, $content) |
| Prepend a named body segment to the body content array.
|
|
| insert ($name, $content, $parent=null, $before=false) |
| Insert a named segment into the body content array.
|
|
| outputBody () |
| Echo the body segments.
|
|
| setException (Exception $e) |
| Register an exception with the response.
|
|
| getException () |
| Retrieve the exception stack.
|
|
| isException () |
| Has an exception been registered with the response?
|
|
| hasExceptionOfType ($type) |
| Does the response object contain an exception of a given type?
|
|
| hasExceptionOfMessage ($message) |
| Does the response object contain an exception with a given message?
|
|
| hasExceptionOfCode ($code) |
| Does the response object contain an exception with a given code?
|
|
| getExceptionByType ($type) |
| Retrieve all exceptions of a given type.
|
|
| getExceptionByMessage ($message) |
| Retrieve all exceptions of a given message.
|
|
| getExceptionByCode ($code) |
| Retrieve all exceptions of a given code.
|
|
| renderExceptions ($flag=null) |
| Whether or not to render exceptions (off by default)
|
|
| sendResponse () |
| Send the response, including all headers, rendering exceptions if so requested.
|
|
| __toString () |
| Magic __toString functionality.
|
|