httpdex
Drop-in replacement for httpx with HTTP/1.1, HTTP/2, and HTTP/3 support.
Highlights
httpx-compatible API- Async and sync clients
- HTTP/2 via
http2=True, HTTP/3 viahttp3=True - Request helpers:
httpdex.get(),httpdex.post(), etc. - Cookie storage via
CookieStore - ASGI-native testing with
ASGITransportandMockTransport
Usage
import httpdex
# Simple request
response = httpdex.get("https://example.com")
# Client with connection reuse
with httpdex.Client() as client:
response = client.get("https://example.com")
# HTTP/2
with httpdex.Client(http2=True) as client:
response = client.get("https://example.com")
# Async
async with httpdex.AsyncClient() as client:
response = await client.get("https://example.com")
# Streaming
with httpdex.Client() as client:
with client.stream("GET", "https://example.com/large") as response:
for chunk in response.iter_bytes():
process(chunk)
Related Packages
httpdex-core- connection pool and transport layerhttpdex-parse- sans-I/O HTTP/1.1 parsinghttpdex-h2- HTTP/2 framing and HPACKhttpdex-h3- HTTP/3 over QUIChttpdex-cookies- RFC 6265 cookie parsing and storage
Metadata
Release files for httpdex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| httpdex-0.1.0.tar.gz | 35.8 kB | Without provenance | Details for httpdex-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| httpdex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for httpdex-0.1.0-py3-none-any.whl |
Total release size: 80.1 kB
Release files / httpdex-0.1.0.tar.gz
| Download URL | httpdex-0.1.0.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
340dca070585c31d8fa9d837c2af99b9512e0ec2dca66d580a72a4ebbefea192
|
|
BLAKE2b-256 checksum How to use checksums |
7096d21df22aa8734ea553492d28054da5367cef86df4730e9bd66f776d3eb71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / httpdex-0.1.0-py3-none-any.whl
| Download URL | httpdex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e557c8d3a47baef89f04d932d231af0027114c2a41623f8c4695643db6b753bd
|
|
BLAKE2b-256 checksum How to use checksums |
f9b0f248d290d835d550e538f0d4d19c365e0aeebdd400c1a3382525a6f8e567
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for httpdex 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.