Skip to main content

serve_tls_with_header_timeout

Function serve_tls_with_header_timeout 

Source
pub async fn serve_tls_with_header_timeout(
    listener: TcpListener,
    router: Router,
    config: Arc<ServerConfig>,
    header_read_timeout: Duration,
) -> Result<()>
Expand description

serve_tls, with the header-read timeout named rather than taken from HEADER_READ_TIMEOUT.

Public so a test can pick a timeout it can actually wait out; a deployment calls serve_tls.