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.

Implementations on Foreign Types§

source§

impl ServerExt for Server<DualProtocolAcceptor>

source§

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

Implementors§