Skip to content
Myr

Add stream docstring (#1200)

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

* Add stream() docstring * Update docs

authored by Joe · committed by GitHub · parent bd8165a · Browse files · 3 files+25 added−2 removed
This commit

State

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

Diff stats

3 files+25 added−2 removed

  • other:+25 added−2 removed

3 files+25 added−2 removed

modified:docs/api.md+5 added-2 removed
modified:httpx/_api.py+10 added
116 unmodified lines
117 verify: VerifyTypes = True,118 cert: CertTypes = None,119 trust_env: bool = True,120) -> StreamContextManager:121 """122 Alternative to `httpx.request()` that streams the response body123 instead of loading it into memory at once.124125 **Parameters**: See `httpx.request`.126127 See also: [Streaming Responses][0]128129 [0]: /quickstart#streaming-responses130 """131 client = Client(proxies=proxies, cert=cert, verify=verify, trust_env=trust_env)132 request = Request(133 method=method,134 url=url,
290 unmodified lines
modified:httpx/_client.py+10 added
189 unmodified lines
190 auth: AuthTypes = None,191 allow_redirects: bool = True,192 timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,193 ) -> "StreamContextManager":194 """195 Alternative to `httpx.request()` that streams the response body196 instead of loading it into memory at once.197198 **Parameters**: See `httpx.request`.199200 See also: [Streaming Responses][0]201202 [0]: /quickstart#streaming-responses203 """204 request = self.build_request(205 method=method,206 url=url,207 data=data,
1504 unmodified lines