Add streaming support#1060
Open
thelovekesh wants to merge 18 commits into
Open
Conversation
ad46fdd to
e364df2
Compare
thelovekesh
commented
Jul 10, 2026
jrfnl
reviewed
Jul 10, 2026
f353f41 to
ace8bab
Compare
Member
|
@thelovekesh Out of curiosity: could this feature be created as an add-on package to Requests instead of having to go into te main package ? |
Member
Author
|
@jrfnl We need this in core because it vendors this package directly, so an add-on can't access it. Also, the transport classes are |
Member
|
@thelovekesh Hmm... the current team barely has the bandwidth to keep up with regular maintenance and security issues, let alone deal with reviewing and maintaining new features. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #1056
Pull Request Type
This is a:
Context
Adds opt-in support for reading HTTP response bodies incrementally as they arrive instead of buffering the entire response before returning. This provides the low-level primitive needed for streaming consumers while preserving the existing behavior for all non-streaming requests.
Detailed Description
WP_Httpto expose streaming responses and for higher-level consumers, such as the AI client SDK, to process streamed HTTP responses using a pull-based API.Quality assurance
Documentation
For new features:
examplesdirectory.docsdirectory.If the documentation is in a new markdown file, I have added a link to this new file to the Docs folder
README.mdfile.