http
¤
Integration of Dispatch functions with http.
BaseFunctionService
¤
BaseFunctionService(
registry: Optional[Registry] = None,
verification_key: Optional[
Union[Ed25519PublicKey, str, bytes]
] = None,
)
BlockingFunctionService
¤
BlockingFunctionService(
registry: Optional[Registry] = None,
verification_key: Optional[
Union[Ed25519PublicKey, str, bytes]
] = None,
)
Bases: BaseFunctionService
BlockingFunctionService is a variant of FunctionService which decorates dispatch functions with a synchronous API instead of using asyncio.
Dispatch
¤
Dispatch(
registry: Registry,
verification_key: Optional[
Union[Ed25519PublicKey, str, bytes]
] = None,
)
Bases: Application
A Dispatch instance servicing as a http server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
registry |
Registry
|
The registry of functions to be serviced. |
required |
verification_key |
Optional[Union[Ed25519PublicKey, str, bytes]]
|
The verification key to use for requests. |
None
|