You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how good common support for GZip encoding is among HTTP client libraries, but it would make for a sweet middleware. Not a blocker, for any major release.
Streaming Request/Responses
I like the way Rack handles this.
res=Faraday.get('http://host.com/big-file.zip')File.open('big-file.zip','w')do |f|
res.eachdo |chunk|
f << chunkendend# add a convenience method for files?res.write_to('big-file.zip')
I know that net/http and excon both support streaming responses. If the adapter doesn't support it, just return the full body in the first chunk (and maybe emit a ruby warning).
Documentation!
TomDoc in the code
Usage docs in the wiki: faraday usage, parallel requests, testing, writing middleware.