Expand description
General parsing complying to the HTTP standards.
This parses small bits of a HTTP request/response to extract common information.
The sanitize_request
exists to check if a request is valid.
This is where part of Layer 6 resides. The list_header
and query
are very useful.
Structs§
- Directives to limit cache lifetime, read from
cache-control
andkvarn-cache-control
headers. - Critical components from request to apply to response.
- A key-value pair in the query.
- An iterator of the values of a name in a
Query
. Created byQuery::get_all
. - A pair of a value string and a quality of said value.
Enums§
- An error with parsing
CacheControl
. - A general error from parsing.
- Stages of parsing a HTTP
Request
. - An error regarding the sanitization of a request.
Functions§
- Formats headers and returns the bytes from the start of
bytes
where the body starts; how many bytes the header occupy. - Parses a header with a value-quality list of pairs.
- Parses a query to a map between keys and their values, as specified in the query.
- Sanitizes
request
for unwanted data and returns critical components.