mirror of https://github.com/fafhrd91/actix-web
Not use .data
This commit is contained in:
parent
976cd509fa
commit
2bc6abc39b
|
@ -16,11 +16,8 @@ use crate::{dev::Payload, Error, HttpRequest};
|
|||
///
|
||||
/// 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`)
|
||||
/// - [`Scope::data()`](`crate::Scope::data`)
|
||||
/// - [`Scope::app_data()`](`crate::Scope::app_data`)
|
||||
/// - [`Resource::data()`](`crate::Resource::data`)
|
||||
/// - [`Resource::app_data()`](`crate::Resource::app_data`)
|
||||
///
|
||||
/// Here are some built-in extractors and their corresponding configuration.
|
||||
|
|
|
@ -201,7 +201,7 @@ fn bytes_to_string(body: Bytes, encoding: &'static Encoding) -> Result<String, E
|
|||
/// By default, the payload size limit is 256kB and there is no mime type condition.
|
||||
///
|
||||
/// To use this, add an instance of it to your [`app`](crate::App), [`scope`](crate::Scope)
|
||||
/// or [`resource`](crate::Resource) through the associated `.app_data()` or `.data()` method.
|
||||
/// or [`resource`](crate::Resource) through the associated `.app_data()` method.
|
||||
#[derive(Clone)]
|
||||
pub struct PayloadConfig {
|
||||
limit: usize,
|
||||
|
|
Loading…
Reference in New Issue