tinyapi/serving.py
def middleware_handler(self, middleware: typing.Callable, start_response: typing.Callable) -> None:
        """
            This method is responsible for handling the middlewares.
        """
        resp = middleware()
        if isinstance(resp, Respone):
            start_response(self.get_status_message(resp.status_code), resp._form_header())
            if resp is not None:
                return self.get_isinstance(resp)

            This method is responsible for handling the middlewares.
        
This method is responsible for handling the middlewares.
This method is responsible for handling the middlewares .
def middleware_handler(self, middleware: typing.Callable, start_response: typing.Callable) -> None:
        resp = middleware()
        if isinstance(resp, Respone):
            start_response(self.get_status_message(resp.status_code), resp._form_header())
            if resp is not None:
                return self.get_isinstance(resp)
def middleware_handler ( self , middleware : typing . Callable , start_response : typing . Callable ) -> None : resp = middleware ( ) if isinstance ( resp , Respone ) : start_response ( self . get_status_message ( resp . status_code ) , resp . _form_header ( ) ) if resp is not None : return self . get_isinstance ( resp )
This method is responsible for handling the middlewares.
This method is responsible for handling the middlewares .
"""
            This method is responsible for handling the middlewares.
        """
self
middleware
typing.Callable
start_response
typing.Callable