def METHOD_NAME(self, request, view):
    data = MiddlewareData(
        server=self.server,
        connection=request.connection,
        request=request,
        view=view,
    )
    return self._run_middlewares_sync(
        'handle_request',
        data,
    )