minos.networks.decorators.callables.handlers
Classes
Handler Meta class. |
|
Handler Wrapper class. |
- class HandlerWrapper[source]
Bases:
Protocol
Handler Wrapper class.
- meta: HandlerMeta
- check: Type[CheckDecorator]
- __init__(*args, **kwargs)
- class HandlerMeta[source]
Bases:
object
Handler Meta class.
- __init__(func, decorators=None, checkers=None)[source]
- Parameters
func (Handler) –
decorators (Optional[set[EnrouteDecorator]]) –
checkers (Optional[set[CheckerMeta]]) –
- func: Handler
- decorators: set[EnrouteDecorator]
- checkers: set[CheckerMeta]
- property wrapper: minos.networks.decorators.callables.handlers.HandlerWrapper
Get the
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.
- async_wrapper
Get the async
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.
- sync_wrapper
Get the sync
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.
- add_decorator(decorator)[source]
Add a new decorator to the
decorators
set.- Parameters
decorator (EnrouteDecorator) – The decorator to be added.
- Returns
This method does not return anything.
- Return type
None
- check
Get the check decorator.
- Returns
A
CheckDecorator
type.