# Python HTTPX: Making HTTP Requests With HTTPX2

DevFeed: [Python HTTPX: Making HTTP Requests With HTTPX2](<https://devfeed.tech/articles/python-httpx-making-http-requests-with-httpx2-129316.md>)

Original publisher: [Read original article](<https://realpython.com/python-httpx/>)

Author: Cléa Aumont

Published: 2026-11-11T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [client library](<https://devfeed.tech/topics/client-library.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asyncio](<https://devfeed.tech/tags/asyncio.md>), [http](<https://devfeed.tech/tags/http.md>), [http-2](<https://devfeed.tech/tags/http-2.md>), [httpx](<https://devfeed.tech/tags/httpx.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

HTTPX2 keeps a Requests-like API while adding async requests, default timeouts, and optional HTTP/2. The tutorial shows reusing `Client` or `AsyncClient` instances to pool connections, using `asyncio.gather()` for concurrent calls, and tuning the separate connect, read, write, and pool timeout phases. It explains handling timeout and network exceptions, streaming response bodies in chunks to limit memory use, and enabling HTTP/2 with the optional `h2` dependency and `http2=True`; unsupported servers fall back to HTTP/1.1. Migration is often a simple import change, but HTTPX2 does not follow redirects by default as Requests does, and the fork has a separate exception hierarchy. The text also notes HTTPX2's OS trust store behavior and its dropped Python 3.9 support.

## Source excerpt

Learn how to use Python HTTPX (now HTTPX2) to make HTTP requests, send async calls, set safe timeouts, stream large downloads, and enable HTTP/2.