vuer.base
¶
- class vuer.base.Server[source]¶
Base TCP server
- host = Proto(default='localhost', dtype=<class 'str'>, help=":str 'localhost' ", metavar='\x08')¶
- cors = Proto(default='*', dtype=<class 'str'>, help=":str '*' Enable CORS", metavar='\x08')¶
- port = Proto(default=8012, dtype=<class 'int'>, help=':int 8012 ', metavar='\x08')¶
- cert = Proto(default=None, dtype=<class 'str'>, help=':str None the path to the SSL certificate', metavar='\x08')¶
- key = Proto(default=None, dtype=<class 'str'>, help=':str None the path to the SSL key', metavar='\x08')¶
- ca_cert = Proto(default=None, dtype=<class 'str'>, help=':str None the trusted root CA certificates', metavar='\x08')¶
- WEBSOCKET_MAX_SIZE: int = Proto(default=268435456, dtype=<class 'int'>, help=':int 268435456 maximum size for websocket requests.', metavar='\x08')¶
- REQUEST_MAX_SIZE: int = Proto(default=268435456, dtype=<class 'int'>, help=':int 268435456 maximum size for requests.', metavar='\x08')¶
- _route(path: str, handler: callable, method: str = 'GET')[source]¶
- Parameters:
path (str) –
handler (callable) –
method (str) –
- __annotations__ = {'REQUEST_MAX_SIZE': <class 'int'>, 'WEBSOCKET_MAX_SIZE': <class 'int'>}¶