class Generic
Nested
Definitions
def prepare_request(request, payload)
Implementation
def prepare_request(request, payload)
request.body = ::Protocol::HTTP::Body::Buffered.wrap(payload)
end
def process_response(request, response)
Implementation
def process_response(request, response)
wrap_response(response)
end
def wrap_response(response)
Wrap the response body in the given klass.
Implementation
def wrap_response(response)
if body = response.body
if parser = parser_for(response)
response.body = parser.new(body)
end
end
return response
end