Function warp::redirect::see_other[][src]

pub fn see_other(uri: impl AsLocation) -> impl Reply

A simple 303 redirect to a different location.

The HTTP method of the request to the new location will always be GET.

Example

use warp::{http::Uri, Filter};

let route = warp::path("v1")
    .map(|| {
        warp::redirect::see_other(Uri::from_static("/v2"))
    });