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:
2026-01-04 19:21:53 -06:00
parent 32f1f88a90
commit edf271bcc6
4 changed files with 81 additions and 18 deletions
Generated
+1
View File
@@ -1617,6 +1617,7 @@ dependencies = [
"futures-util",
"http",
"http-body",
"http-body-util",
"iri-string",
"pin-project-lite",
"tower",