tinyapi/application.py
def rule(self, rule:str, methods: typing.List[str]) -> typing.Callable:
        """
            This method is used to register a rule.
            The rule is a regular expression that will be used to match the request.

            Parameters
            ----------
            rule: `str`
                The rule that will be used to match the request.
            methods: `typing.List[str]`
                The methods that will be used to match the request.
        """
        def decorator(func: typing.Callable) -> typing.Callable:
            return self.add_rule(rule, methods, func)
        return decorator

            This method is used to register a rule.
            The rule is a regular expression that will be used to match the request.

            Parameters
            ----------
            rule: `str`
                The rule that will be used to match the request.
            methods: `typing.List[str]`
                The methods that will be used to match the request.
        
This method is used to register a rule.
The rule is a regular expression that will be used to match the request.

Parameters

`str`
The rule that will be used to match the request.
methods: `typing.List[str]`
The methods that will be used to match the request.
This method is used to register a rule . The rule is a regular expression that will be used to match the request . Parameters ` str ` The rule that will be used to match the request . methods : ` typing . List [ str ] ` The methods that will be used to match the request .
def rule(self, rule:str, methods: typing.List[str]) -> typing.Callable:
        def decorator(func: typing.Callable) -> typing.Callable:
            return self.add_rule(rule, methods, func)
        return decorator
def rule ( self , rule : str , methods : typing . List [ str ] ) -> typing . Callable : def decorator ( func : typing . Callable ) -> typing . Callable : return self . add_rule ( rule , methods , func ) return decorator
This method is used to register a rule.
This method is used to register a rule .
"""
            This method is used to register a rule.
            The rule is a regular expression that will be used to match the request.

            Parameters
            ----------
            rule: `str`
                The rule that will be used to match the request.
            methods: `typing.List[str]`
                The methods that will be used to match the request.
        """
self
rule
str
methods
typing.List[str]