Posts tagged restclient

Jun24

RestClient: Soon to handle streaming bodies

restclient ruby | comments

Here’s a little patch I wrote to allow RestClient to stream the HTTP request’s body from a File, Tempfile, StringIO or other IO-like object.

The IO object must respond to #size (or #stat.size), #close, and #read(n)

Continue reading »