class Aws::CloudSearchDomain::Plugins::SwitchToPost::Handler
@api private
Public Instance Methods
call(context)
click to toggle source
# File lib/aws-sdk-cloudsearchdomain/plugins/switch_to_post.rb, line 14 def call(context) convert_get_2_post(context) @handler.call(context) end
Private Instance Methods
convert_get_2_post(context)
click to toggle source
# File lib/aws-sdk-cloudsearchdomain/plugins/switch_to_post.rb, line 21 def convert_get_2_post(context) context.http_request.http_method = 'POST' uri = context.http_request.endpoint context.http_request.body = uri.query context.http_request.headers['Content-Length'] = uri.query.length context.http_request.headers['Content-Type'] = 'application/x-www-form-urlencoded' context.http_request.endpoint.query = nil end