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§
- Parsing JSON data in the body of a request.
- Parsing data sent with
multipart/form-data
. - Parsing data sent with a
<form method="POST">
.
Structs§
- Iterator that returns the list of cookies of a request.
- Credentials returned by
basic_http_auth
. - Iterator to the elements of a priority header.
Functions§
- Attempts to parse a
Authorization
header with basic HTTP auth. - Attempts to parse the list of cookies from the request.
- Parses the value of a header that has values with priorities. Suitable for
Accept-*
,TE
, etc. - Read plain text data from the body of a request.
- Reads plain text data from the body of a request.
- Returns the preferred value amongst a priority header.