108 public function isOk();
HTTP response builder interface.
getStatusCode()
Returns status code.
isRedirection()
Check if response is redirection.
getContent()
Returns response body.
isNotModified()
Check if response has been modified.
isOk()
Check if response is OK.
isInformational()
Check if response is informational.
isServerError()
Check if response is server error.
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
isSuccessful()
Check if response is successful.
if(!$entity->delete(true, true)) $forward_url
setForwardURL(string $forward_url=REFERRER)
Sets redirect URL.
setException(\Exception $e)
Set an exception for this response.
setStatusCode(int $status_code)
Sets response HTTP status code.
isClientError()
Check if response is client error.
getException()
Get the exception for this reponse.
$content
Set robots.txt action.
setHeaders(array $headers=[])
Sets additional response headers.
setContent($content= '')
Sets response body.
getHeaders()
Returns additional response headers.
getForwardURL()
Returns redirect URL.