Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(http): add multipart for server #511

Merged
merged 22 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
aa2970f
feat(http): add multipart for server
StellarisW Oct 22, 2024
92279c6
feat(http): add multipart for server
StellarisW Oct 22, 2024
1e50004
feat(http): add multipart for server
StellarisW Oct 22, 2024
7534dfb
feat(http): add multipart for server
StellarisW Oct 22, 2024
eec1d9f
feat(http): add multipart for server
StellarisW Oct 22, 2024
a2c6ce6
feat(http): add multipart for server
StellarisW Oct 22, 2024
b4c7642
feat(http): add multipart for server
StellarisW Oct 22, 2024
e57c052
feat(http): add multipart for server
StellarisW Oct 22, 2024
427fd20
feat(http): add multipart for server
StellarisW Oct 22, 2024
b2a3a3d
feat(http): add multipart for server
StellarisW Oct 23, 2024
8c28eea
feat(http): add multipart for server
StellarisW Oct 23, 2024
3eaad84
feat(http): add multipart for server
StellarisW Oct 23, 2024
f15936f
feat(http): add multipart for server
StellarisW Oct 23, 2024
11c3367
feat(http): add multipart for server
StellarisW Oct 24, 2024
865976b
feat(http): add multipart for server
StellarisW Oct 24, 2024
74e6b24
feat(http): add multipart for server
StellarisW Oct 24, 2024
6bcb033
feat(http): add multipart for server
StellarisW Oct 25, 2024
94b27ef
feat(http): add multipart for server
StellarisW Oct 25, 2024
f0351e6
feat(http): add multipart for server
StellarisW Oct 25, 2024
45193d4
feat(http): add multipart for server
StellarisW Oct 25, 2024
c56beae
feat(http): add multipart for server
StellarisW Oct 25, 2024
6721517
feat(http): add multipart for server
StellarisW Oct 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 167 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ mime = "0.3"
mime_guess = { version = "2", default-features = false }
mockall = "0.13"
mockall_double = "0.3"
multer = "3.1"
mur3 = "0.1"
nix = "0.29"
nom = "7"
Expand All @@ -96,6 +97,7 @@ proc-macro2 = "1"
quote = "1"
rand = "0.8"
regex = "1"
reqwest = "0.12"
run_script = "0.10"
rustc-hash = { version = "2", features = ["rand"] }
same-file = "1"
Expand All @@ -121,6 +123,7 @@ tower = "0.5"
tracing = "0.1"
tracing-subscriber = "0.3"
update-informer = "1"
url = "2.5"
url_path = "0.1"
walkdir = "2"

Expand Down
8 changes: 6 additions & 2 deletions volo-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ tokio-util = { workspace = true, features = ["io"] }
tracing.workspace = true

# =====optional=====
multer = { workspace = true, optional = true }

# server optional
matchit = { workspace = true, optional = true }
Expand All @@ -84,19 +85,22 @@ sonic-rs = { workspace = true, optional = true }
async-stream.workspace = true
libc.workspace = true
serde = { workspace = true, features = ["derive"] }
reqwest = { workspace = true, features = ["multipart"] }
tokio-test.workspace = true
url.workspace = true
yukiiiteru marked this conversation as resolved.
Show resolved Hide resolved

[features]
default = []

default_client = ["client", "json"]
default_server = ["server", "query", "form", "json"]
default_server = ["server", "query", "form", "json", "multipart"]

full = ["client", "server", "rustls", "cookie", "query", "form", "json", "tls", "ws"]
full = ["client", "server", "rustls", "cookie", "query", "form", "json", "multipart", "tls", "ws"]

client = ["hyper/client", "hyper/http1"] # client core
server = ["hyper/server", "hyper/http1", "dep:matchit"] # server core

multipart = ["dep:multer"]
ws = ["dep:tungstenite", "dep:tokio-tungstenite"]

tls = ["rustls"]
Expand Down
Loading
Loading