Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: requests
Commits on May 8, 2011
  1. refactor how Requests are ran

    The Request class is not responsible for running itself anymore.
    Its `run` methods (both class and instance) are gone.
    The actual running of the request is handled by Connection in the
    `run_request` method.
  2. cache middleware stack instead of rebuilding it on every request

    The downside is, middleware can't be modified after making the first request:
      conn.use MyMiddleware       # => OK
      conn.use AnotherMiddleware  # => raises a Builder::StackLocked error
    On the plus side, the middleware stack is built only once and then cached as
    the Connection#app object.
    The Connection instance can always be "forked off" with the `dup` method and
    modified as if it were fresh.
  3. refactor query params hash handling

     - Connection#params is now an instance of Faraday::Utils::ParamsHash
     - get rid of `merge_params`, `merge_headers` methods
     - don't mix in Faraday::Utils into Connection
    Fixes #48
Commits on May 6, 2011
  1. @sferik
Commits on Apr 27, 2011
  1. @sferik
Commits on Apr 13, 2011
  1. @sferik

    Release 0.6.1

    sferik authored
  2. @sferik

    Release 0.6.1

    sferik authored
  3. @sferik

    Add ca_path to SSL options hash

    Alex Kremer authored sferik committed
Commits on Apr 4, 2011
  1. refactor how adapters save response params to `env`

    Ensures :response_headers always get initialized
    Closes #50
Commits on Apr 1, 2011
  1. @technoweenie

    Release 0.6.0

    technoweenie authored
Commits on Mar 28, 2011
  1. typo in README

Commits on Mar 27, 2011
  1. add `Response.apply_request` method

    Useful, for example, to re-apply the current request environment after
    a response object was restored from cache.
  2. more love for response headers; handle ones with multiple values

      - ensure that env[:response_headers] is not available during request phase
      - fix headers from "Test" adapter
    Closes #43
Commits on Mar 26, 2011
  1. add excon to bundle

  2. fix syntax warning

  3. tweak Gemfile for jruby

  4. @gregspurrier

    Support :cert_store SSL option

    gregspurrier authored committed
  5. optimize request/response cycle for parallel (asynchronous) mode

     - there is no `env[:response]` during the request phase
     - middleware should attach `on_complete` handlers to the response object
       returned from `` call
     - `on_complete` handlers execute immediately if the request is finished
     - Builder doesn't have the `run` method anymore
     - the default stack is now setup as soon as the Builder object has been initialized
     - the inner app for the stack is set when creating the request
  6. cleanup Patron adapter

  7. filter adapters used in tests with "ADAPTER" env variable

      LIVE=1 ADAPTER=typhoeus bundle exec ruby test/adapters/live_test.rb
  8. execute Response#on_complete callbacks in reverse order

    This is because when response is finished, middleware that was lowest
    on the stack (last added the callback) should get notified first.
Something went wrong with that request. Please try again.