Expand description
Request validation primitives for static/read-only serving.
These types decouple HTTP method and body-framing validation from the server loop so callers can pre-validate requests without depending on Hyper types.
Enums§
- Read
Only Method - Supported read-only HTTP methods for static file serving.
- Request
Validation Error - Errors from request validation.
Functions§
- validate_
method - Check if a method string is a supported read-only method.
- validate_
request_ body - Validate that a request has no body, as expected for GET/HEAD.
- validate_
request_ target - Validate a request target is valid origin-form (starts with
/).