class Faraday::Response::Middleware
Used for simple response middleware.
def call(env)
def call(env) @app.call(env).on_complete do |env| on_complete(env) end end
def on_complete(env)
Override this to modify the environment after the response has finished.
def on_complete(env) if respond_to? :parse env[:body] = parse(env[:body]) unless [204,304].index env[:status] end end