Skip to content

HTTPStream takes a parser as the parameter#139

Merged
lovelydinosaur merged 1 commit intodevfrom
http-stream
Feb 27, 2026
Merged

HTTPStream takes a parser as the parameter#139
lovelydinosaur merged 1 commit intodevfrom
http-stream

Conversation

@lovelydinosaur
Copy link
Contributor

Tweak HTTPStream, so that it accepts an HTTPParser instance as the parameter.

Receiving a response looks like this...

protocol, status, reason = await parser.recv_status_line()
headers = await parser.recv_headers()
stream = httpx.HTTPStream(parser)
body = await stream.read()

@lovelydinosaur lovelydinosaur merged commit 16ab11d into dev Feb 27, 2026
5 checks passed
@lovelydinosaur lovelydinosaur deleted the http-stream branch February 27, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant