Expand description
JSON schema validation middleware
Enums§
- Content
Type Kind - Classify Content-Type header values after validation.
Functions§
- is_
form_ urlencoded - Fast classification: is this Content-Type application/x-www-form-urlencoded?
- is_
json_ content_ type - Check if a media type is JSON or has a +json suffix
- is_
json_ like - Fast classification: does this Content-Type represent JSON (application/json or +json)?
- is_
json_ like_ str - Fast classification for already-extracted header strings.
- is_
multipart_ form_ data - Fast classification: is this Content-Type multipart/form-data?
- validate_
content_ length - Validate Content-Length header matches actual body size
- validate_
content_ type_ headers - Validate Content-Type header and related requirements
- validate_
content_ type_ headers_ and_ classify - Validate Content-Type and return its classification (if present).
- validate_
json_ content_ type - Validate that Content-Type is JSON-compatible when route expects JSON