You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7ef5f8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/client/transports.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,11 @@ That is the whole production client. `Client` wraps the URL in `streamable_http_
26
26
27
27
Nothing was resolved, fetched or spawned when you wrote `Client("http://...")`. That line is free.
28
28
29
+
!!! note "Event-stream cleanup"
30
+
Streamable HTTP and legacy SSE close each event iterator when they stop reading, if it
31
+
exposes `aclose()`. This runs its cleanup on early return or cancellation instead of leaving
32
+
it to garbage collection. HTTPX2 remains responsible for nested response iterators.
33
+
29
34
### Bring your own `httpx2.AsyncClient`
30
35
31
36
The moment you need an `Authorization` header, a cookie, a proxy, mTLS, or a different timeout, build the `httpx2.AsyncClient` yourself and hand it to `streamable_http_client`:
0 commit comments