Function summer_boot::http::accept

source ·
pub async fn accept<RW, F, Fut>(io: RW, endpoint: F) -> Result<()>
where RW: Read + Write + Clone + Send + Sync + Unpin + 'static, F: Fn(Request) -> Fut, Fut: Future<Output = Result<Response>>,
Expand description

接受新的传入HTTP/1.1连接 默认情况支持KeepAlive请求。