class Faraday::Response

def on_complete(&block)

def on_complete(&block)
  if !finished?
    @on_complete_callbacks << block
  else
    yield(env)
  end
  self
end