HTTPX · Error
TimeoutException
HTTPX limits network inactivity by default and raises a timeout error after five seconds. Set a timeout per request or client, disable it with None, or tune connect, read, write, and pool timeouts separately.
Last updated
Syntax
httpx.request(method, url, *, timeout=Timeout(timeout=5.0), ...)
httpx.Client(timeout=10.0)
httpx.get(url, timeout=10.0)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TimeoutExceptionConnectTimeoutReadTimeoutWriteTimeoutPoolTimeoutClientHTTPError