def class_based_request(self, request):
    '\n        class based views such as Django\n        already implemented\n        '
    response = Response()
    (handler, kwargs) = self.find_handler_request(request_path=request.path)
    if (handler is not None):
        if inspect.isclass(handler):
            handler = getattr(handler(), request.method.lower(), None)
            if (handler is None):
                raise AttributeError('Method now allowed', request.method)
        handler(request, response, **kwargs)
    else:
        self.default_response(response)
    return response
class based views such as Django
already implemented
def class_based_request(self, request):
    '\n        class based views such as Django\n        already implemented\n        '
    response = Response()
    (handler, kwargs) = self.find_handler_request(request_path=request.path)
    if (handler is not None):
        if inspect.isclass(handler):
            handler = getattr(handler(), request.method.lower(), None)
            if (handler is None):
                raise AttributeError('Method now allowed', request.method)
        handler(request, response, **kwargs)
    else:
        self.default_response(response)
    return response