Struct actix_web::dev::PayloadConfig [−][src]
pub struct PayloadConfig { /* fields omitted */ }
Payload configuration for request's payload.
Methods
impl PayloadConfig
[src]
impl PayloadConfig
ⓘImportant traits for &'a mut Rpub fn limit(&mut self, limit: usize) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn limit(&mut self, limit: usize) -> &mut Self
Change max size of payload. By default max size is 256Kb
ⓘImportant traits for &'a mut Rpub fn mimetype(&mut self, mt: Mime) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn mimetype(&mut self, mt: Mime) -> &mut Self
Set required mime-type of the request. By default mime type is not enforced.
Trait Implementations
impl Default for PayloadConfig
[src]
impl Default for PayloadConfig
Auto Trait Implementations
impl Send for PayloadConfig
impl Send for PayloadConfig
impl Sync for PayloadConfig
impl Sync for PayloadConfig