A redirect to location: 302 unless you pass 301, 303, 307 or 308.
- location: the URL to go to, as an absolute URL or a path.
- status: 301, 302, 303, 307 or 308. Use 303 after a POST, 307 or 308 to keep the method.
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.