mirror of https://github.com/fafhrd91/actix-web
Fix docs
This commit is contained in:
parent
9dada8e37f
commit
976cd509fa
|
@ -18,6 +18,7 @@ edition = "2018"
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
# features that docs.rs will build with
|
# features that docs.rs will build with
|
||||||
features = ["openssl", "rustls", "compress", "cookies", "secure-cookies"]
|
features = ["openssl", "rustls", "compress", "cookies", "secure-cookies"]
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "actix_web"
|
name = "actix_web"
|
||||||
|
|
|
@ -11,12 +11,10 @@ use futures_core::ready;
|
||||||
|
|
||||||
use crate::{dev::Payload, Error, HttpRequest};
|
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
|
/// 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`].
|
/// 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::data()`](`crate::App::data`)
|
||||||
/// - [`App::app_data()`](`crate::App::app_data`)
|
/// - [`App::app_data()`](`crate::App::app_data`)
|
||||||
|
|
Loading…
Reference in New Issue