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