[−][src]Function http_service_h1::serve
pub async fn serve<S: HttpService>(service: S, addr: SocketAddr) -> Result<()> where
<<S as HttpService>::ResponseFuture as Future>::Output: Send,
<S as HttpService>::Connection: Sync,
Serve the given HttpService
at the given address, using async-h1
as backend, and return a
Future
that can be await
ed on.