1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 23:17:42 +02:00

big clean up and docs improvmenet of types mod (#1894)

This commit is contained in:
Rob Ede
2021-01-09 13:17:19 +00:00
committed by GitHub
parent 530d03791d
commit 6575ee93f2
22 changed files with 674 additions and 743 deletions

View File

@ -184,7 +184,7 @@ where
}
}
/// Change max size of payload. By default max size is 256Kb
/// Change max size of payload. By default max size is 256kB
pub fn limit(mut self, limit: usize) -> Self {
if let Some(ref mut fut) = self.fut {
fut.limit = limit;
@ -276,7 +276,7 @@ where
}
}
/// Change max size of payload. By default max size is 64Kb
/// Change max size of payload. By default max size is 64kB
pub fn limit(mut self, limit: usize) -> Self {
if let Some(ref mut fut) = self.fut {
fut.limit = limit;

View File

@ -147,7 +147,7 @@ impl WebsocketsRequest {
/// Set max frame size
///
/// By default max size is set to 64kb
/// By default max size is set to 64kB
pub fn max_frame_size(mut self, size: usize) -> Self {
self.max_size = size;
self