fullcontact/fullcontact-api-ruby

View on GitHub
lib/faraday/response/add_headers.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Faraday
  class Response::AddHeaders < Response::Middleware
    def on_complete(env)
      env.body[:http_headers] = env.response_headers
      env.body
    end
  end
end