R/redirect.R

Defines functions redirectTo

Documented in redirectTo

#' @include http.R
#' @include status.R
#' @include headers.R
NULL

#' Redirect
#' @param location
#'    a URL to go.
#' @rdname redirect
#' @export
redirectTo <- function(location) {
   MOVED_PERMANENTLY %>>% setHeader("Location", location)
}
kos59125/shadowy documentation built on May 20, 2019, 1:08 p.m.