Skip to content
technoweenie edited this page Apr 22, 2012 · 7 revisions

Let's get Faraday 1.0 out before the world ends!

Rough Schedule

0.9

This will be where any big changes for 1.0 are tested, before being finalized.

1.0

Big release. Hopefully no big changes for awhile (famous last words).

Ideas

See the Faraday v1.0 Milestone.

Add a GZip middleware

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.each do |chunk|
    f << chunk
  end
end

# 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.

Middleware can add symbol shortcuts too

Allow everyone to use Faraday.register_lookup_modules

Clone this wiki locally