Trait salvo_core::http::HttpConnection
source · pub trait HttpConnection {
// Required methods
fn serve(
self,
handler: HyperHandler,
builder: Arc<HttpBuilder>,
graceful_stop_token: CancellationToken
) -> impl Future<Output = IoResult<()>> + Send;
fn fusewire(&self) -> Option<Arc<dyn Fusewire + Sync + Send + 'static>>;
}
Expand description
A helper trait for http connection.
Required Methods§
Object Safety§
This trait is not object safe.
Implementors§
impl HttpConnection for H3Connection
Available on crate feature
quinn
only.impl<C> HttpConnection for StraightStream<C>
impl<S> HttpConnection for HandshakeStream<S>
Available on crate features
native-tls
or rustls
or openssl
or acme
only.