Skip to main content

Module WebkitServer

Module WebkitServer 

Source
Expand description

Debug server for inspecting webview content via HTTP API. Only compiled in debug builds.

Staticsยง

WINDOW ๐Ÿ”’
Global storage for the webview window used by the debug server.

Functionsยง

eval_js ๐Ÿ”’
Evaluates JavaScript in the webview and returns the result as a serde_json::Value.
handle_connection ๐Ÿ”’
Handles a single HTTP connection, dispatches based on method and path.
install
Installs the debug server and stores a reference to the webview window. This function should be called once during app setup in debug builds.
send_json ๐Ÿ”’
Sends a JSON response with the given status code.
start_server ๐Ÿ”’
Main server loop listening for TCP connections.