Class: Aws::Plugins::Protocols::JsonRpc

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/protocols/json_rpc.rb

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, after_initialize_hooks, before_initialize, #before_initialize, before_initialize_hooks, handlers, option, options

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response, #handler_for, #new_handler

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/aws-sdk-core/plugins/protocols/json_rpc.rb', line 23

def add_handlers(handlers, config)
  handlers.add(Json::ErrorHandler, step: :sign)
  handlers.add(Json::RpcHeadersHandler)
  handlers.add(config.simple_json ?
    Json::SimpleBodyHandler :
    Json::RpcBodyHandler)
end