Opened 12 years ago

Last modified 10 years ago

#4017 enhancement new

— at Add an IEntityBodyProducer which produces bytes from a file-like objectInitial Version

Reported by: Jean-Paul Calderone Owned by: Jean-Paul Calderone
Priority: normal Milestone:
Component: web Keywords: httpclient IBodyProducer
Cc: Branch:


#886 introduces an HTTP client API along with a new interface, IEntityBodyProducer, 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 (0)

Note: See TracTickets for help on using tickets.