Http module

redirect

procedure · 1 overloadSource

A redirect to location: 302 unless you pass 301, 303, 307 or 308.

redirect :: (location: string, status := 302) -> Response

A redirect to location: 302 unless you pass 301, 303, 307 or 308.

Parameters

location: string
the URL to go to, as an absolute URL or a path.
status := 302
301, 302, 303, 307 or 308. Use 303 after a POST, 307 or 308 to keep the method.

Returns

See also