This commit is contained in:
Arniu 2021-06-01 23:08:38 +08:00
parent 9dada8e37f
commit 976cd509fa
2 changed files with 2 additions and 3 deletions

View File

@ -18,6 +18,7 @@ edition = "2018"
[package.metadata.docs.rs]
# features that docs.rs will build with
features = ["openssl", "rustls", "compress", "cookies", "secure-cookies"]
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "actix_web"

View File

@ -11,12 +11,10 @@ use futures_core::ready;
use crate::{dev::Payload, Error, HttpRequest};
/// [`FromRequest`] is one of the most commonly used trait, although some may not realize it.
///
/// A type that implements [`FromRequest`] is called an **extractor** and can extract data
/// from the request. Examples of types that implement this trait are [`Json`], [`Form`], [`Path`].
///
/// An extractor can be customized by injecting the corresponding configuration with:
/// An extractor can be customized by injecting the corresponding configuration with one of:
///
/// - [`App::data()`](`crate::App::data`)
/// - [`App::app_data()`](`crate::App::app_data`)