mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-08-16 11:20:28 +03:00
fix(core): export UriSchemeResponder
(#9845)
This commit is contained in:
parent
f4d67818f8
commit
0b690f242f
5
.changes/UriSchemeResponder-export.md
Normal file
5
.changes/UriSchemeResponder-export.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"tauri": "patch:bug"
|
||||||
|
---
|
||||||
|
|
||||||
|
Export `tauri::UriSchemeResponder`.
|
@ -1776,6 +1776,8 @@ tauri::Builder::default()
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) type UriSchemeResponderFn = Box<dyn FnOnce(http::Response<Cow<'static, [u8]>>) + Send>;
|
pub(crate) type UriSchemeResponderFn = Box<dyn FnOnce(http::Response<Cow<'static, [u8]>>) + Send>;
|
||||||
|
|
||||||
|
/// Async uri scheme protocol responder.
|
||||||
pub struct UriSchemeResponder(pub(crate) UriSchemeResponderFn);
|
pub struct UriSchemeResponder(pub(crate) UriSchemeResponderFn);
|
||||||
|
|
||||||
impl UriSchemeResponder {
|
impl UriSchemeResponder {
|
||||||
|
@ -214,7 +214,8 @@ pub use self::utils::TitleBarStyle;
|
|||||||
pub use self::event::{Event, EventId, EventTarget};
|
pub use self::event::{Event, EventId, EventTarget};
|
||||||
pub use {
|
pub use {
|
||||||
self::app::{
|
self::app::{
|
||||||
App, AppHandle, AssetResolver, Builder, CloseRequestApi, RunEvent, WebviewEvent, WindowEvent,
|
App, AppHandle, AssetResolver, Builder, CloseRequestApi, RunEvent, UriSchemeResponder,
|
||||||
|
WebviewEvent, WindowEvent,
|
||||||
},
|
},
|
||||||
self::manager::Asset,
|
self::manager::Asset,
|
||||||
self::runtime::{
|
self::runtime::{
|
||||||
|
Loading…
Reference in New Issue
Block a user