Expand description
Analyze the request’s headers and body.
This module provides functions and sub-modules that allow you to easily analyze or parse the request’s headers and body.
- In order to parse JSON, see the
json
module. - In order to parse input from HTML forms, see the
post
module. - In order to read a plain text body, see
the
plain_text_body
function.
Re-exports§
pub use self::json::json_input;
Modules§
- json
- Parsing JSON data in the body of a request.
- multipart
- Parsing data sent with
multipart/form-data
. - post
- Parsing data sent with a
<form method="POST">
.
Structs§
- Cookies
Iter - Iterator that returns the list of cookies of a request.
- Http
Auth Credentials - Credentials returned by
basic_http_auth
. - Priority
Header Iter - Iterator to the elements of a priority header.
Functions§
- basic_
http_ auth - Attempts to parse a
Authorization
header with basic HTTP auth. - cookies
- Attempts to parse the list of cookies from the request.
- parse_
priority_ header - Parses the value of a header that has values with priorities. Suitable for
Accept-*
,TE
, etc. - plain_
text_ body - Read plain text data from the body of a request.
- plain_
text_ body_ with_ limit - Reads plain text data from the body of a request.
- priority_
header_ preferred - Returns the preferred value amongst a priority header.