Skip to content
masterclass Buddy

HTTPX · Function

httpx.stream

HTTPX AsyncClient sends HTTP requests with awaitable methods. Reuse one client for connection pooling, and close it with an async context manager or aclose().

Last updated

Syntax

async with httpx.AsyncClient() as client:
    response = await client.get(url)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • AsyncClient.stream
  • AsyncClient.send
  • AsyncClient.aclose
  • Response.aread
  • Response.aiter_bytes
  • Response.aiter_text
  • Response.aiter_lines
  • Response.aiter_raw

Source: Async Support - HTTPX. Checked 2026-11-03.