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.