TimeoutTimeout configuration
This module provides timeout configuration for HTTP requests. Supports connection, read, total request, and 100-continue timeouts.
Per Recommendation #7: HTTP 100-Continue support requires a short timeout (default 1s) to wait for the continue response before sending the request body.
val src : Logs.Src.tLog source for timeout operations
val none : tNo timeouts
val create :
?connect:float ->
?read:float ->
?total:float ->
?expect_100_continue:float ->
unit ->
tCreate timeout configuration with optional timeouts in seconds.
val default : tSensible defaults: 10s connect, 30s read, no total limit, 1s expect
val connect : t -> float optionGet connection timeout
val read : t -> float optionGet read timeout
val total : t -> float optionGet total request timeout
val expect_100_continue : t -> float optionGet timeout for waiting for HTTP 100 Continue response. Per RFC 9110 Section 10.1.1, clients should wait a reasonable time for the 100 Continue response before sending the request body. If the timeout expires, the body is sent anyway.
val pp : Format.formatter -> t -> unitPretty printer for timeout configuration