zaku.base#
- class zaku.base.Server[source]#
Base TCP server
- host: str = 'localhost'#
- port: int = 8012#
- cors: str = '*'#
Enable CORS
- cert: str = None#
the path to the SSL certificate
- key: str = None#
the path to the SSL key
- ca_cert: str = None#
the trusted root CA certificates
- WEBSOCKET_MAX_SIZE = 268435456#
- _route(path: str, handler: callable, method: str = 'GET')[source]#
- Parameters:
path (str) –
handler (callable) –
method (str) –
- __annotations__ = {'ca_cert': <class 'str'>, 'cert': <class 'str'>, 'cors': <class 'str'>, 'host': <class 'str'>, 'key': <class 'str'>, 'port': <class 'int'>}#