Response (Frontend)

Helper for modifying the response. Can be access with $_response

Method Description Returns
setCookies(array $cookies) Set the cookies sent to the browser
setCookie(string $key, $value = NULL, ?string $expire = NULL, ?string $path = '/') Set a value for a cookie to be sent to the browser
redirect(string $url, int $statusCode = 302) Redirect the user to the specified url
preventCaching() Prevent caching the response rendered from the template