class Aws::Json::RpcHeadersHandler
def add_headers(context)
def add_headers(context) context.http_request.headers['Content-Type'] = content_type(context) context.http_request.headers['X-Amz-Target'] = target(context) context end
def call(context)
-
(Seahorse::Client::Response)
-
Parameters:
-
context
(Seahorse::Client::RequestContext
) --
def call(context) @handler.call(add_headers(context)) end
def content_type(context)
def content_type(context) CONTENT_TYPE % [context.config.api.metadata('jsonVersion')] end
def target(context)
def target(context) prefix = context.config.api.metadata('targetPrefix') "#{prefix}.#{context.operation.name}" end