HTTPX · Class
MockTransport
HTTPX MockTransport replaces real network calls with responses returned by a handler. It is useful for predictable tests.
Last updated
Syntax
httpx.MockTransport(handler)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
HTTPTransportBaseTransportClientMock transports