Skip to main content

Crate tauri_plugin_localhost

Crate tauri_plugin_localhost 

Source
Expand description

Expose your apps assets through a localhost server instead of the default custom protocol.

Note: This plugins brings considerable security risks and you should only use it if you know what your are doing. If in doubt, use the default custom protocol implementation.

Structsยง

Builder
Builds the localhost plugin.
Request
An incoming HTTP request received by the localhost server, passed to the Builder::on_request hook.
Response
The HTTP response the localhost server is about to send back for a matched asset. Passed mutably to the Builder::on_request hook so it can add or override headers before the response is written to the client.