Make HTTP requests with the http plugin.
Install the http plugin to get started.
Use your project’s package manager to add the dependency:
npm run tauri add http
yarn run tauri add http
pnpm tauri add http
cargo tauri add http
cargo add tauri-plugin-httpto add the plugin to the project’s dependencies in
lib.rsto initialize the plugin:
npm install @tauri-apps/plugin-http
yarn add @tauri-apps/plugin-http
pnpm add @tauri-apps/plugin-http
- Send a request
In Rust you can utilize the
reqwest crate re-exported by the plugin. For more details refer to reqwest docs.
© 2024 Tauri Contributors. CC-BY / MIT