fix(core): export UriSchemeResponder (#9845)

This commit is contained in:
Amr Bashir 2024-05-21 20:13:40 +03:00 committed by GitHub
parent f4d67818f8
commit 0b690f242f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": "patch:bug"
---
Export `tauri::UriSchemeResponder`.

View File

@ -1776,6 +1776,8 @@ tauri::Builder::default()
}
pub(crate) type UriSchemeResponderFn = Box<dyn FnOnce(http::Response<Cow<'static, [u8]>>) + Send>;
/// Async uri scheme protocol responder.
pub struct UriSchemeResponder(pub(crate) UriSchemeResponderFn);
impl UriSchemeResponder {

View File

@ -214,7 +214,8 @@ pub use self::utils::TitleBarStyle;
pub use self::event::{Event, EventId, EventTarget};
pub use {
self::app::{
App, AppHandle, AssetResolver, Builder, CloseRequestApi, RunEvent, WebviewEvent, WindowEvent,
App, AppHandle, AssetResolver, Builder, CloseRequestApi, RunEvent, UriSchemeResponder,
WebviewEvent, WindowEvent,
},
self::manager::Asset,
self::runtime::{