Skip to content

Commit f78a378

Browse files
authored
refactor(core): remove http features (#6742)
1 parent 2d5378b commit f78a378

File tree

24 files changed

+77
-1631
lines changed

24 files changed

+77
-1631
lines changed

.changes/move-http-api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"api": patch
3+
"tauri": patch
4+
---
5+
6+
Moved the `http` feature to its own plugin in the plugins-workspace repository.

core/tauri/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,9 @@ updater = [
144144
"minisign-verify",
145145
"time",
146146
"base64",
147-
"http-api",
148147
"dialog-ask",
149148
"fs-extract-api"
150149
]
151-
http-api = [ ]
152150
http-multipart = [ "reqwest/multipart" ]
153151
shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ]
154152
fs-extract-api = [ "zip" ]
@@ -212,7 +210,7 @@ fs-rename-file = [ ]
212210
fs-write-file = [ ]
213211
global-shortcut-all = [ ]
214212
http-all = [ "http-request" ]
215-
http-request = [ "http-api" ]
213+
http-request = [ ]
216214
notification-all = [ "notification", "dialog-ask" ]
217215
os-all = [ "os_info" ]
218216
path-all = [ ]

core/tauri/scripts/bundle.global.js

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/tauri/src/api/error.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ pub enum Error {
2424
/// The network error.
2525
#[error("Network Error: {0}")]
2626
Network(#[from] reqwest::Error),
27-
/// HTTP method error.
28-
#[error(transparent)]
29-
HttpMethod(#[from] http::method::InvalidMethod),
3027
/// Invalid HTTP header value.
3128
#[error(transparent)]
3229
HttpHeaderValue(#[from] http::header::InvalidHeaderValue),
3330
/// Invalid HTTP header value.
3431
#[error(transparent)]
3532
HttpHeader(#[from] http::header::InvalidHeaderName),
36-
/// Failed to serialize header value as string.
33+
/// Failed to convert bytes to string.
3734
#[error(transparent)]
3835
Utf8(#[from] std::string::FromUtf8Error),
3936
/// HTTP form to must be an object.

0 commit comments

Comments
 (0)