class documentation
class HandlerConstructor(TypingProtocol):
Protocol for handler constructors.
| Method | __call__ |
Create a handler instance. |
def __call__(self, backend:
Backend, args: list[ bytes], proto: Protocol, stateless_rpc: bool = False, advertise_refs: bool = False) -> Handler:
ΒΆ
Create a handler instance.
| Parameters | |
backend:Backend | The backend to use for the handler |
args:list[ | Arguments for the handler |
proto:Protocol | Protocol object for communication |
statelessbool | Whether to use stateless RPC mode |
advertisebool | Whether to advertise references |
| Returns | |
Handler | A Handler instance |