def asResponse(request):
 return _MemoryResponse('HTTP/1.1', request.code, request.code_message, request.responseHeaders, None, None, request._responseBody)

def asResponse ( request ) : return _MemoryResponse ( 'HTTP/1.1' , request . code , request . code_message , request . responseHeaders , None , None , request . _responseBody )
extract the response data stored on a request and create a real response object from it .