Create a response to redirect to a destination.
Usage
redirect(dest, status = 301L)
Arguments
- dest
A destination path.
- status
The status code (usually 301 or 302).
Examples
servr::redirect("https://www.r-project.org")
#> $status
#> [1] 301
#>
#> $body
#> [1] ""
#>
#> $headers
#> $headers$Location
#> [1] "https://www.r-project.org"
#>
#>