Skip to content
Myr

Fix sample in quickstart.md (#2747)

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

authored by Johnny Lim · committed by GitHub · parent 6d183a8 · Browse files · 1 file+1 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

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/quickstart.md+1 added-1 removed
365 unmodified lines
366If you're using streaming responses in any of these ways then the `response.content` and `response.text` attributes will not be available, and will raise errors if accessed. However you can also use the response streaming functionality to conditionally load the response body:367368```pycon369>>> with httpx.stream("GET", "https://www.example.com") as r:370... if r.headers['Content-Length'] < TOO_LONG:370... if int(r.headers['Content-Length']) < TOO_LONG:371... r.read()372... print(r.text)373```374
161 unmodified lines