Support for request body streaming #874

Closed
rbu opened this Issue Oct 1, 2012 · 3 comments

2 participants

@rbu
rbu commented Oct 1, 2012

Sending a request with a large request body (i.e. a large file that is being multipart-encoded) will consume a large amount of memory.

It would be very helpful if it were possible to specify a file-like object (and the content-length separately) and request as well as its helper libraries read only the chunks that are needed to continue sending the request.

This may be related to shazow/urllib3#51

@kennethreitz
Owner

The plan is to support generators. Work in progress :)

@rbu
rbu commented Oct 2, 2012

Thanks for letting me know. Just to confirm, did you close the ticket because you're not tracking features as issues or you're currently working on it? Is it appropriate to raise new features as issues in the future?

@kennethreitz
Owner

Oh, I should have mentioned #295 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment