-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for a new StreamingBody extractor (#617)
Per RFD 353, add support for a new extractor that can provide data as a stream of Bytes chunks. This means that large request payloads won't have to buffer everything into a single, contiguous chunk of memory. Also add some examples showing how to use the extractor to operate on chunks in a streaming fashion. (There are also other potential examples we can add here, such as compressing and/or decompressing data on the fly). I haven't implemented those here. Finally, switch over the other extractors to be implemented on top of `StreamingBody`. In effect, the other extractors just provide a differently-shaped API on top of `StreamingBody`. This PR doesn't implement support for the other determination in RFD 353, which is to allow some endpoints' max payload sizes to be set to a higher limit. That's in #618.
- Loading branch information
1 parent
6ecc57a
commit ccce224
Showing
13 changed files
with
318 additions
and
105 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.