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 fromcache-controlandkvarn-cache-controlheaders.
- Critical components from request to apply to response.
- A key-value pair in the query.
- An iterator of the values of a name in aQuery. Created byQuery::get_all.
- A pair of a value string and a quality of said value.
Enums§
- An error with parsingCacheControl.
- A general error from parsing.
- Stages of parsing a HTTPRequest.
- An error regarding the sanitization of a request.
Functions§
- Formats headers and returns the bytes from the start ofbyteswhere 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.
- Sanitizesrequestfor unwanted data and returns critical components.