Not use .data

This commit is contained in:
Arniu 2021-06-26 09:56:33 +08:00
parent 976cd509fa
commit 2bc6abc39b
2 changed files with 1 additions and 4 deletions

View File

@ -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.

View File

@ -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,