Class: Response::AddHeaders

Inherits:
Middleware
  • Object
show all
Defined in:
lib/faraday/response/add_headers.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



3
4
5
6
# File 'lib/faraday/response/add_headers.rb', line 3

def on_complete(env)
  env.body[:http_headers] = env.response_headers
  env.body
end