What problem does it solve?
It prevents broken HTTP integrations by guiding you to use httpx’s correct lifecycle, timeouts, error handling, redirects, streaming, and testing patterns instead of relying on unsafe defaults or requests-style assumptions.
Core Features & Use Cases
- Sync + Async client correctness: context-managed
Client/AsyncClient, connection pooling, and safe reuse across a process.
- Resilient request handling: explicit per-phase timeouts,
raise_for_status() usage, and correct exception distinction (RequestError vs HTTPStatusError).
- Real-world HTTP coverage: auth (Basic/Digest/NetRC/custom
httpx.Auth), proxies/TLS/mTLS, HTTP/2 opt-in, and streaming downloads/uploads.
- Testing without real ports:
MockTransport, ASGITransport, WSGITransport, plus respx and pytest-httpx guidance.
Quick Start
Use the httpx skill to migrate your existing requests code to an async AsyncClient with correct redirect handling and explicit timeouts for production reliability.