Tauri Invoke HTTP
This is a crate that provides a custom invoke system for Tauri using a localhost server.
Each message is delivered through a XMLHttpRequest
and the server is responsible for replying to it.
Usage
First, add the dependency to your src-tauri/Cargo.toml
file:
[dependencies]
tauri-invoke-http = "0.1"
Then, setup the HTTP invoke system on the main.rs
file:
To invoke a custom command from your own or remote system you can use curl
or similar tooling.
See examples/vanilla
to test this on your system.
An example command to invoke the exit
command in the example Tauri app exposing port 18436
(randomly chosen port) could look like: