Skip to content

Commit

Permalink
fix(core): export UriSchemeResponder (#9845)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored May 21, 2024
1 parent f4d6781 commit 0b690f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/UriSchemeResponder-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": "patch:bug"
---

Export `tauri::UriSchemeResponder`.
2 changes: 2 additions & 0 deletions core/tauri/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion core/tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down

0 comments on commit 0b690f2

Please sign in to comment.