mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
committed by
GitHub
parent
e6012b88af
commit
331f346002
@@ -75,7 +75,7 @@ base64 = { version = "0.13", optional = true }
|
||||
clap = { version = "3", optional = true }
|
||||
reqwest = { version = "0.11", features = [ "json", "stream" ], optional = true }
|
||||
bytes = { version = "1", features = [ "serde" ], optional = true }
|
||||
attohttpc = { version = "0.19", features = [ "json", "form" ], optional = true }
|
||||
attohttpc = { version = "0.20", features = [ "compress", "json", "form" ], optional = true }
|
||||
open = { version = "3.0", optional = true }
|
||||
shared_child = { version = "1.0", optional = true }
|
||||
os_pipe = { version = "1.0", optional = true }
|
||||
@@ -151,6 +151,8 @@ http-multipart = [ "attohttpc/multipart-form", "reqwest/multipart" ]
|
||||
shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ]
|
||||
fs-extract-api = [ "zip" ]
|
||||
reqwest-client = [ "reqwest", "bytes" ]
|
||||
reqwest-native-tls-vendored = [ "reqwest-client", "reqwest/native-tls-vendored" ]
|
||||
native-tls-vendored = [ "attohttpc/tls-vendored" ]
|
||||
process-command-api = [ "shared_child", "os_pipe" ]
|
||||
global-shortcut = [
|
||||
"tauri-runtime/global-shortcut",
|
||||
|
||||
@@ -155,11 +155,6 @@ impl Client {
|
||||
|
||||
if let Some(timeout) = request.timeout {
|
||||
request_builder = request_builder.timeout(timeout);
|
||||
#[cfg(windows)]
|
||||
{
|
||||
// on Windows the global timeout is not respected, see https://github.com/sbstp/attohttpc/issues/118
|
||||
request_builder = request_builder.read_timeout(timeout);
|
||||
}
|
||||
}
|
||||
|
||||
let response = if let Some(body) = request.body {
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
//! - **http-api**: Enables the [`api::http`] module.
|
||||
//! - **http-multipart**: Adds support to `multipart/form-data` requests.
|
||||
//! - **reqwest-client**: Uses `reqwest` as HTTP client on the `http` APIs. Improves performance, but increases the bundle size.
|
||||
//! - **native-tls-vendored**: Compile and statically link to a vendored copy of OpenSSL (applies to the default HTTP client).
|
||||
//! - **reqwest-native-tls-vendored**: Compile and statically link to a vendored copy of OpenSSL (applies to the `reqwest` HTTP client).
|
||||
//! - **process-command-api**: Enables the [`api::process::Command`] APIs.
|
||||
//! - **global-shortcut**: Enables the global shortcut APIs.
|
||||
//! - **clipboard**: Enables the clipboard APIs.
|
||||
|
||||
Reference in New Issue
Block a user