You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Json::Handler

Inherits:
Seahorse::Client::Handler show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/json/handler.rb

Constant Summary

CONTENT_TYPE =
'application/x-amz-json-%s'

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Seahorse::Client::Response



9
10
11
12
13
14
15
# File 'gems/aws-sdk-core/lib/aws-sdk-core/json/handler.rb', line 9

def call(context)
  build_request(context)
  response = @handler.call(context)
  response.on(200..299) { |resp| parse_response(resp) }
  response.on(200..599) { |resp| apply_request_id(context) }
  response
end