Skip to main content

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 via http3=True
  • Request helpers: httpdex.get(), httpdex.post(), etc.
  • Cookie storage via CookieStore
  • ASGI-native testing with ASGITransport and MockTransport

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 layer
  • httpdex-parse - sans-I/O HTTP/1.1 parsing
  • httpdex-h2 - HTTP/2 framing and HPACK
  • httpdex-h3 - HTTP/3 over QUIC
  • httpdex-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)

Source distribution for httpdex 0.1.0
File Size Uploaded
httpdex-0.1.0.tar.gz 35.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for httpdex 0.1.0
File Interpreter ABI Platform
httpdex-0.1.0-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page