shapelets.add_server#

shapelets.add_server(alias: str = 'local', host: str = '127.0.0.1', port: int = 4567, protocol: Literal['http', 'https'] = 'http', default_server: bool = True)#

Add a server instance to Shapelets. If execute empty, localhost will be registered. Warning: if adding an existing server, the old information will be replaced.

Parameters:
alias: str, required

Alias for the server. This name will help to find the server in the future.

host: str, optional

Where the server is located.

port: int, optional

Which port does it bind to.

protocol: int, optional

Which protocol (http / https ) should be used to contact.

default_server: bool, optional

Set as default server.