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
response.body = parser_for(response).new(body)
end
return response
end