pub(crate) async fn serve(
listener: TcpListener,
app: Router,
header_timeout: Duration,
)Expand description
Accept loop: hyper HTTP/1 with a header-read timeout (S10). axum::serve
(0.7) sets no header timer, so a client that never finishes its request
line holds a socket forever (slow-loris). HTTP/1 only: the hyper-util
auto builder would pull in h2, which the API does not need.