[−][src]Function async_h1::accept
pub async fn accept<'_, RW, F, Fut>(
addr: &'_ str,
__arg1: RW,
endpoint: F
) -> Result<()> where
RW: Read + Write + Clone + Send + Sync + Unpin + 'static,
F: Fn(Request) -> Fut,
Fut: Future<Output = Result<Response>>,
Accept a new incoming HTTP/1.1 connection.
Supports KeepAlive
requests by default.