Sha256: 736362def70a5d92e772b99babd3305def7580b4801098e27efae13f71046a10

Contents?: true

Size: 178 Bytes

Versions: 8

Compression:

Stored size: 178 Bytes

Contents

module Faraday
  class Response::AddHeaders < Response::Middleware
    def on_complete(env)
      env.body[:http_headers] = env.response_headers
      env.body
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fullcontact-api-ruby-0.1.0 lib/faraday/response/add_headers.rb
fullcontact-0.18.0 lib/faraday/response/add_headers.rb
fullcontact-0.17.0 lib/faraday/response/add_headers.rb
fullcontact-0.16.0 lib/faraday/response/add_headers.rb
fullcontact-0.15.0 lib/faraday/response/add_headers.rb
fullcontact-0.14.0 lib/faraday/response/add_headers.rb
fullcontact-0.13.0 lib/faraday/response/add_headers.rb
fullcontact-0.12.0 lib/faraday/response/add_headers.rb