halorgium / rack-client

A client wrapper around a rack app or live-http
http://halorgium.github.com/rack-client
MIT License
99 stars 28 forks source link

Add Faraday Adapter #17

Closed benburkert closed 11 years ago

benburkert commented 11 years ago

An implementation of the rack-client adapter for faraday described here: lostisland/faraday#244

For applications or libraries that use faraday and allow for a configurable adapter, this adds support for injecting a rack-client stack into the faraday client configuration. For example, if I wanted to test my rails app directly from my client app:

MyClient.new do |faraday_builder|
  faraday_builder.adapter :rack_client do |rack_builder|
    rack_builder.use Rack::Lint
    rack_builder.run MyApp.new
  end
end
halorgium commented 11 years ago

@benburkert woah, awesome!