Use this function to add a
(add-header :x-request-id 100500)
Adds a "retpath"
GET parameter to the giving
Keeps all other parameters and overwrites "retpath" parameter if it is
already exists in the
By default, retpath is the current page, rendered by the reblocks. This is very useful to redirect user to login page and return him to the same page where he has been before.
Use this function to add Set-Cookie header:
(set-cookie (list :name "user_id" :value "bob" :samesite :lax))
Cookie might include these properties:
Returns a list with a map cookie-name -> cookie:cookie object. Odd items in this list are cookie names and even are lists with cookie parameters.
Aborts request processing by signaling an
and returns a given value as response.
HTTP code and headers are taken from
By default, headers and cookies are taken from the current request, but additional headers and cookies may be provides in appropriate arguments.
Makes a new
URL, based on the current request's
If new-path can be absolute, like /logout or relative, like ./stories.
Also, it can contain a query params like /login?code=100500
on whether the current request is via
AJAX or not.
Script may be either a string or a list; if it is a list it will be compiled through Parenscript first.