Add Multipart extractor for consuming multipart/form-data requests (#32)

Multipart implementation on top of `multer`
This commit is contained in:
David Pedersen
2021-07-14 16:53:37 +02:00
committed by GitHub
parent e641caefaf
commit 028c472c84
7 changed files with 358 additions and 103 deletions
+3
View File
@@ -15,6 +15,7 @@ version = "0.1.0"
[features]
default = []
ws = ["tokio-tungstenite", "sha-1", "base64"]
multipart = ["multer", "mime"]
[dependencies]
async-trait = "0.1"
@@ -38,6 +39,8 @@ tokio-tungstenite = { optional = true, version = "0.14" }
sha-1 = { optional = true, version = "0.9.6" }
base64 = { optional = true, version = "0.13" }
headers = { optional = true, version = "0.3" }
multer = { optional = true, version = "2.0.0" }
mime = { optional = true, version = "0.3" }
[dev-dependencies]
askama = "0.10.5"