mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 02:26:38 -06:00
feat: add request validation and HEAD method support
- Validate Content-Type for API requests (application/json only) - Add HEAD method handlers for all routes - Add 1MB request body limit - Improve method not allowed responses with Allow header
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ time = { version = "0.3.44", features = ["formatting", "macros"] }
|
||||
tokio = { version = "1.49.0", features = ["full"] }
|
||||
tokio-util = { version = "0.7.18", features = ["io"] }
|
||||
tower = "0.5"
|
||||
tower-http = { version = "0.6.8", features = ["trace", "cors"] }
|
||||
tower-http = { version = "0.6.8", features = ["trace", "cors", "limit"] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
|
||||
ulid = { version = "1", features = ["serde"] }
|
||||
|
||||
Reference in New Issue
Block a user