Skip to content
Myr

adding keepalive_expiry param to docs and docstring (#2090)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Udasi Tharani · committed by GitHub · parent 7883c98 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:docs/advanced.md+2 added-1 removed
670 unmodified lines
671argument on the client. It takes instances of `httpx.Limits` which define:672673- `max_keepalive`, number of allowable keep-alive connections, or `None` to always674allow. (Defaults 20)675- `max_connections`, maximum number of allowable connections, or` None` for no limits.675- `max_connections`, maximum number of allowable connections, or `None` for no limits.676(Default 100)677- `keepalive_expiry`, time limit on idle keep-alive connections in seconds, or `None` for no limits. (Default 5)678679```python680limits = httpx.Limits(max_keepalive_connections=5, max_connections=10)681client = httpx.Client(limits=limits)
496 unmodified lines
modified:httpx/_config.py+1 added
282 unmodified lines
283 established.284 * **max_keepalive_connections** - Allow the connection pool to maintain285 keep-alive connections below this point. Should be less than or equal286 to `max_connections`.287 * **keepalive_expiry** - Time limit on idle keep-alive connections in seconds.288 """289290 def __init__(291 self,
72 unmodified lines