savant_rs.webserver

savant_rs.webserver.init_webserver(port)

Starts embedded webserver providing status, shutdown and metrics features.

Parameters:

port (int)

savant_rs.webserver.is_shutdown_set()

Returns the status of the webserver.

Returns:

True if the webserver installed shutdown status, False otherwise.

Return type:

bool

savant_rs.webserver.set_shutdown_signal(signal)
savant_rs.webserver.set_shutdown_token(token)

Sets the token to be used to shut down the webserver.

Parameters:

token (str)

savant_rs.webserver.set_status_running()
savant_rs.webserver.stop_webserver()

Stops the embedded webserver.