class Seahorse::Client::Plugins::RestfulBindings::Handler

def parse_response(response)

Extracts HTTP response headers and status code.
def parse_response(response)
  headers = response.context.http_response.headers
  each_member(response.context.operation.output) do |key, shape|
    case shape.location
    when 'statusCode'
      status_code = response.context.http_response.status_code
      response.data[key] = status_code
    when 'header'
      response.data[key] = extract_header(headers, shape)
    when 'headers'
      response.data[key] = extract_header_map(headers, shape)
    end
  end
end