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§
sourcefn set_upgrade(self, upgrade: bool) -> Self
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.