Skip to content

Commit 8758244

Browse files
committed
make http client state accessible
1 parent 2465565 commit 8758244

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/http/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
77
pub use reqwest;
88
use tauri::{
9-
plugin::{Builder, TauriPlugin},
109
Manager, Runtime,
10+
plugin::{Builder, TauriPlugin},
1111
};
1212

1313
pub use error::{Error, Result};
@@ -21,9 +21,9 @@ mod scope;
2121
#[cfg(feature = "cookies")]
2222
const COOKIES_FILENAME: &str = ".cookies";
2323

24-
pub(crate) struct Http {
24+
pub struct Http {
2525
#[cfg(feature = "cookies")]
26-
cookies_jar: std::sync::Arc<crate::reqwest_cookie_store::CookieStoreMutex>,
26+
pub cookies_jar: std::sync::Arc<crate::reqwest_cookie_store::CookieStoreMutex>,
2727
}
2828

2929
pub fn init<R: Runtime>() -> TauriPlugin<R> {

0 commit comments

Comments
 (0)