Files
tauri-plugins-workspace/examples/api
Amr BashirandLucas Nogueira 068bc7cc8c fix(http): release response resources and preserve cancellation (#3786)
* fix(http): release canceled request resources before sending

* fix(http): safely cancel body reads and release response resources

* fix(http): preserve cancellation across the response handoff

* fix(http): release bodyless responses and reject unsupported statuses

* fix(http): cancel webview requests and responses on navigation

* fix(http): honor abort signals and clean up listeners

* fix(http): allow WebKit to collect HTTP responses

* fix(http): release abandoned response bodies

* chore(http): consolidate cleanup change files

* chore(http): note pending webview-close cleanup

* only close http resources in the cancel commands

* look up the page token without scanning the resource table

* add e2e tests for the cancel commands

* cancel requests when the webview's window is destroyed

* add e2e test for window close cleanup

* document why we use on_window_event

* clippy

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-11-18 12:22:31 -03:00
..
2023-05-05 09:41:17 -03:00
2023-05-05 09:41:17 -03:00
2026-11-09 14:06:38 +01:00
2026-11-09 14:06:38 +01:00
2023-05-05 09:41:17 -03:00
2023-05-05 09:41:17 -03:00

API example

This example demonstrates Tauri's API capabilities using the plugins from this repository. It's used as the main validation app, serving as the testbed of our development process. In the future, this app will be used on Tauri's integration tests.

App screenshot

Running the example

  • Install dependencies and build packages (Run inside of the repository root)
$ pnpm install
$ pnpm build
  • Run the app in development mode (Run inside of this folder examples/api/)
$ pnpm tauri dev
  • Build an run the release app (Run inside of this folder examples/api/)
$ pnpm tauri build
$ ./src-tauri/target/release/app