Changes between and of Initial VersionVersion 7Ticket #4017
- Timestamp:
- 06/08/2011 02:53:11 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4017
-
Property
Summary
changed from
Add an IEntityBodyProducer which produces bytes from a file-like object
toAdd an IBodyProducer which produces bytes from a file-like object
- Property Owner Jean-Paul Calderone deleted
-
Property
Branch
changed from
to
branches/filebodyproducer-4017
-
Property
Author
changed from
to
exarkun
- Property Keywords httpclient IBodyProducer review added
-
Property
Summary
changed from
-
Ticket #4017 – Description
initial v7 1 #886 introduces an HTTP client API along with a new interface, `I EntityBodyProducer`, 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.1 #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. 2 2 3 3 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).