class Aws::Rest::Request::Body
def apply(http_req, params)
-
params
(Hash
) -- -
http_req
(Seahorse::Client::Http::Request
) --
def apply(http_req, params) body = build_body(params) # for rest-json, ensure we send at least an empty object # don't send an empty object for streaming? case. if body.nil? && @serializer_class == Json::Builder && modeled_body? && !streaming? body = '{}' end http_req.body = body end