[−][src]Function warp::redirect::temporary
pub fn temporary(uri: impl AsLocation) -> impl Reply
A simple 307
temporary redirect to a different location.
Example
use warp::{http::Uri, Filter}; let route = warp::path("v1") .map(|| { warp::redirect::temporary(Uri::from_static("/v2")) });