diff --git a/web/src/middleware/compress.rs b/web/src/middleware/compress.rs index f5b7b146..f6954f29 100644 --- a/web/src/middleware/compress.rs +++ b/web/src/middleware/compress.rs @@ -9,6 +9,7 @@ use crate::service::Service; /// # Type mutation /// `Compress` would mutate response body type from `B` to `Coder`. Service enclosed /// by it must be able to handle it's mutation or utilize [TypeEraser] to erase the mutation. +/// For more explanation please reference [type mutation](crate::middleware#type-mutation). /// /// [WebRequest]: crate::http::WebRequest /// [WebResponse]: crate::http::WebResponse diff --git a/web/src/middleware/decompress.rs b/web/src/middleware/decompress.rs index 51844492..58a637e6 100644 --- a/web/src/middleware/decompress.rs +++ b/web/src/middleware/decompress.rs @@ -9,6 +9,7 @@ use crate::service::Service; /// # Type mutation /// `Decompress` would mutate request body type from `B` to `Coder`. Service enclosed /// by it must be able to handle it's mutation or utilize [TypeEraser] to erase the mutation. +/// For more explanation please reference [type mutation](crate::middleware#type-mutation). /// /// [WebContext]: crate::WebContext /// [TypeEraser]: crate::middleware::eraser::TypeEraser diff --git a/web/src/middleware/limit.rs b/web/src/middleware/limit.rs index 808e8ea5..6ab44973 100644 --- a/web/src/middleware/limit.rs +++ b/web/src/middleware/limit.rs @@ -23,10 +23,11 @@ use crate::{ /// General purposed limitation middleware. Limiting request/response body size etc. /// /// # Type mutation -/// `Limit` would mutate request body type from `B` to `Limit`. Service enclosed -/// by it must be able to handle it's mutation or utilize [TypeEraser] to erase the mutation. +/// [`Limit`] would mutate request body type from `B` to [`Limit`]. Service enclosed by it must be +/// able to handle it's mutation or utilize [`TypeEraser`] to erase the mutation. +/// For more explanation please reference [`type mutation`](crate::middleware#type-mutation). /// -/// [TypeEraser]: crate::middleware::eraser::TypeEraser +/// [`TypeEraser`]: crate::middleware::eraser::TypeEraser #[derive(Copy, Clone)] pub struct Limit { request_body_size: usize,