tinyapi/serving.py
def request_handler(self, callback: typing.Any, status_code: int, headers: typing.List[typing.Tuple[str]], start_response: typing.Callable) -> None:
        """
            This method is the entry point of the request handler.
            It will dispatch the request to the callback of the rule.
            If the request doesn't match any rule, it will return a 404 error.
        """

        if isinstance(callback, Respone):
            self.error_handler(callback.status_code, start_response)

            start_response(callback.status_code, callback._form_header())

        else:
            start_response(self.get_status_message(status_code), headers)

        return self.get_isinstance(callback)

            This method is the entry point of the request handler.
            It will dispatch the request to the callback of the rule.
            If the request doesn't match any rule, it will return a 404 error.
        
This method is the entry point of the request handler.
It will dispatch the request to the callback of the rule.
If the request doesn't match any rule, it will return a 404 error.
This method is the entry point of the request handler . It will dispatch the request to the callback of the rule . If the request doesn ' t match any rule it will return a 404 error .
def request_handler(self, callback: typing.Any, status_code: int, headers: typing.List[typing.Tuple[str]], start_response: typing.Callable) -> None:
        if isinstance(callback, Respone):
            self.error_handler(callback.status_code, start_response)
            start_response(callback.status_code, callback._form_header())
        else:
            start_response(self.get_status_message(status_code), headers)
        return self.get_isinstance(callback)
def request_handler ( self , callback : typing . Any , status_code : int , headers : typing . List [ typing . Tuple [ str ] ] , start_response : typing . Callable ) -> None : if isinstance ( callback , Respone ) : self . error_handler ( callback . status_code , start_response ) start_response ( callback . status_code , callback . _form_header ( ) ) else : start_response ( self . get_status_message ( status_code ) , headers ) return self . get_isinstance ( callback )
This method is the entry point of the request handler.
This method is the entry point of the request handler .
"""
            This method is the entry point of the request handler.
            It will dispatch the request to the callback of the rule.
            If the request doesn't match any rule, it will return a 404 error.
        """
self
callback
typing.Any
status_code
int
headers
typing.List[typing.Tuple[str]]
start_response
typing.Callable