Add an IBodyProducer which produces bytes from a file-like object
|Reported by:||exarkun||Owned by:||exarkun|
branch-diff, diff-cov, branch-cov, buildbot
Description (last modified by exarkun)
#886 introduces an HTTP client API along with a new interface, IBodyProducer, for providing request bodies in a streaming manner. This interface isn't quite the same as IProducer, so existing producers don't quite work with it.
For convenience, we should provide an implementation of this interface based on file-like objects (along the lines of twisted.protocols.basic.FileSender). This will be useful both for the obvious reason (sending files as request bodies), as well as as an example of how to implement these, and will also be usable with StringIO instances to send data constructed in memory (eg simple form posts).
Change History (13)
comment:6 Changed 6 years ago by exarkun
- Keywords review added
- Owner djfroofy deleted
- Status changed from assigned to new
comment:7 Changed 6 years ago by exarkun
- Description modified (diff)
- Summary changed from Add an IEntityBodyProducer which produces bytes from a file-like object to Add an IBodyProducer which produces bytes from a file-like object
comment:12 Changed 5 years ago by exarkun
- Branch changed from branches/filebodyproducer-4017 to branches/filebodyproducer-4017-2