feat: AsyncMultipartStreamParser#80
Open
defnull wants to merge 1 commit into
Open
Conversation
523cb97 to
7ae68f2
Compare
An async-aware wrapper for PushMultipartParser that reads bytes from an awaitable read function on demand and returns AsyncMultipartPart instances that offer convenient async read methods for their payload.
7ae68f2 to
2316a4c
Compare
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.
An async-aware wrapper for
PushMultipartParserthat reads bytes from an awaitable read function on demand and returnsAsyncMultipartPartinstances that offer convenient async read methods for their payload.This is still a stream parser, which means that parts are not buffered to disk and can only be read once, and only in the order they appear in the multipart stream. It is still WAY more convenient than using
PushMultipartParserdirectly.Example usage:
Work in Progress