Struct salvo_extra::force_https::ForceHttps
source · [−]pub struct ForceHttps { /* private fields */ }
Available on crate feature
force-https
only.Expand description
Middleware for force redirect to http uri.
Implementations
sourceimpl ForceHttps
impl ForceHttps
Trait Implementations
sourceimpl Default for ForceHttps
impl Default for ForceHttps
sourcefn default() -> ForceHttps
fn default() -> ForceHttps
Returns the “default value” for a type. Read more
sourceimpl Handler for ForceHttps
impl Handler for ForceHttps
sourcefn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Handle http request.
Auto Trait Implementations
impl !RefUnwindSafe for ForceHttps
impl Send for ForceHttps
impl Sync for ForceHttps
impl Unpin for ForceHttps
impl !UnwindSafe for ForceHttps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more