def request(self, **request):
request = RequestFactory.request(self, **request)<EOL>handler = BaseHandler()<EOL>handler.load_middleware()<EOL>for middleware_method in handler._request_middleware:<EOL><INDENT>if middleware_method(request):<EOL><INDENT>raise Exception("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>return request<EOL>
Construct a generic request object.