ruia/middleware.py
def response(self, *args, **kwargs):
        """
        Define a Decorate to be called after a response.
        eg: @middleware.response
        """
        middleware = args[0]

        @wraps(middleware)
        def register_middleware(*args, **kwargs):
            self.response_middleware.appendleft(middleware)
            return middleware

        return register_middleware()
def response(self, *args, **kwargs):
        """
        Define a Decorate to be called after a response.
        eg: @middleware.response
        """
        middleware = args[0]

        @wraps(middleware)
        def register_middleware(*args, **kwargs):
            self.response_middleware.appendleft(middleware)
            return middleware

        return register_middleware()
def response ( self , * args , * * kwargs ) : middleware = args [ 0 ] @ wraps ( middleware ) def register_middleware ( * args , * * kwargs ) : self . response_middleware . appendleft ( middleware ) return middleware return register_middleware ( )
Define a Decorate to be called after a response.
        eg: @middleware.response
Define a Decorate to be called after a response . eg :