rouille/input/
mod.rs

1// Copyright (c) 2016 The Rouille developers
2// Licensed under the Apache License, Version 2.0
3// <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT
5// license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
6// at your option. All files in the project carrying such
7// notice may not be copied, modified, or distributed except
8// according to those terms.
9
10//! Analyze the request's headers and body.
11//!
12//! This module provides functions and sub-modules that allow you to easily analyze or parse the
13//! request's headers and body.
14//!
15//! - In order to parse JSON, see [the `json` module](json/index.html).
16//! - In order to parse input from HTML forms, see [the `post` module](post/index.html).
17//! - In order to read a plain text body, see
18//!   [the `plain_text_body` function](fn.plain_text_body.html).
19
20pub use self::basic_http_auth::basic_http_auth;
21pub use self::basic_http_auth::HttpAuthCredentials;
22pub use self::cookies::cookies;
23pub use self::cookies::CookiesIter;
24pub use self::json::json_input;
25pub use self::plain::plain_text_body;
26pub use self::plain::plain_text_body_with_limit;
27pub use self::priority_header::parse_priority_header;
28pub use self::priority_header::priority_header_preferred;
29pub use self::priority_header::PriorityHeaderIter;
30
31pub mod json;
32pub mod multipart;
33pub mod post;
34
35mod accept;
36mod basic_http_auth;
37mod cookies;
38mod plain;
39mod priority_header;