warp::redirect

Trait AsLocation

Source
pub trait AsLocation: Sealed { }
Expand description

Trait for redirect locations. Currently only a Uri can be used in redirect. This sealed trait exists to allow adding possibly new impls so other arguments could be accepted, like maybe just warp::redirect("/v2").

Implementations on Foreign Types§

Source§

impl AsLocation for Uri

Implementors§