Skip to content
masterclass Buddy

HTTPX · Class

Limits

httpx.Limits controls the size and idle lifetime of an HTTPX connection pool. Pass it to a client with the limits argument.

Last updated

Syntax

httpx.Limits(max_keepalive_connections=20, max_connections=100, keepalive_expiry=5)

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

Subscribe
  • httpx.Client
  • httpx.AsyncClient

Source: Resource Limits - HTTPX. Checked 2026-11-03.