class Seahorse::Client::Http::Response

def on_done(status_code_range = nil, &callback)

def on_done(status_code_range = nil, &callback)
  listener = listener(status_code_range, callback)
  if @done
    listener.call
  else
    @listeners[:done] << listener
  end
end