Trait axum_server_dual_protocol::ServerExt

source ·
pub trait ServerExt {
    // Required method
    fn set_upgrade(self, upgrade: bool) -> Self;
}
Expand description

Supplies configuration methods for Server with DualProtocolAcceptor.

See bind_dual_protocol() for easy creation.

Required Methods§

source

fn set_upgrade(self, upgrade: bool) -> Self

Set if HTTP connections should be automatically upgraded to HTTPS.

See UpgradeHttp for more details.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ServerExt for Server<DualProtocolAcceptor>

source§

fn set_upgrade(self, upgrade: bool) -> Self

Implementors§