|
|
@ -2,7 +2,6 @@
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use std::{future::Future, pin::Pin, str::FromStr, sync::Arc, time::Duration};
|
|
|
|
use std::{future::Future, pin::Pin, str::FromStr, sync::Arc, time::Duration};
|
|
|
|
|
|
|
|
|
|
|
|
use http::{header, HeaderMap, HeaderName, HeaderValue, Method, StatusCode};
|
|
|
|
use http::{header, HeaderMap, HeaderName, HeaderValue, Method, StatusCode};
|
|
|
@ -179,7 +178,7 @@ pub async fn fetch<R: Runtime>(
|
|
|
|
client_config: ClientConfig,
|
|
|
|
client_config: ClientConfig,
|
|
|
|
command_scope: CommandScope<Entry>,
|
|
|
|
command_scope: CommandScope<Entry>,
|
|
|
|
global_scope: GlobalScope<Entry>,
|
|
|
|
global_scope: GlobalScope<Entry>,
|
|
|
|
stream_channel: Channel<tauri::ipc::InvokeResponseBody>
|
|
|
|
stream_channel: Channel<tauri::ipc::InvokeResponseBody>,
|
|
|
|
) -> crate::Result<ResourceId> {
|
|
|
|
) -> crate::Result<ResourceId> {
|
|
|
|
let ClientConfig {
|
|
|
|
let ClientConfig {
|
|
|
|
method,
|
|
|
|
method,
|
|
|
@ -328,7 +327,6 @@ pub async fn fetch<R: Runtime>(
|
|
|
|
Ok(res)
|
|
|
|
Ok(res)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mut resources_table = webview.resources_table();
|
|
|
|
let mut resources_table = webview.resources_table();
|
|
|
|
let rid = resources_table.add_request(Box::pin(fut));
|
|
|
|
let rid = resources_table.add_request(Box::pin(fut));
|
|
|
|
|
|
|
|
|
|
|
|