Méthode | Description | |
---|---|---|
addHeader ( string $name, string $value ) | ||
build ( ) : |
||
cacheControl ( ) | Sets the Cache-Control header to the strings passed as parameters. | |
created ( string $location ) | Configures response as a '201 Created'. | |
expires ( $time ) | Sets the Expires header based on a Unix timestamp. | |
forbidden ( ) | Configures response as a '403 Forbidden' | |
found ( string $location ) | Configures response as a '302 Found' temporary redirect. | |
methodNotAllowed ( ) | Configures response as a '405 Method Not Allowed' | |
moved ( string $location ) | Configures response as a '301 Moved Permanently' permanent redirect. | |
notCachable ( ) | Sets the headers required to prevent response caching. | |
notFound ( ) | Configures response as a '404 Not Found' | |
notModified ( ) | Configures response as a '304 Not Modified' | |
setBody ( string $body ) | Sets the body of the response. | |
setStatusCode ( integer $code ) | ||
view ( Ergo\View $view ) | Uses a view to populate the body of the response |
public cacheControl ( ) |
public expires ( $time ) |
public methodNotAllowed ( ) |
public notCachable ( ) |
public view ( Ergo\View $view ) | ||
$view | Ergo\View |