diff --git a/volo-http/src/server/layer/body_limit.rs b/volo-http/src/server/layer/body_limit.rs index 5751bde8..73ba6115 100644 --- a/volo-http/src/server/layer/body_limit.rs +++ b/volo-http/src/server/layer/body_limit.rs @@ -22,7 +22,7 @@ pub struct BodyLimitLayer { } impl BodyLimitLayer { - /// Create a new [`BodyLimitLayer`] with given [`body_limit`]. + /// Create a new [`BodyLimitLayer`] with given `body_limit`. /// /// If the Body is larger than the `body_limit`, the request will be rejected. /// diff --git a/volo-http/src/server/layer/mod.rs b/volo-http/src/server/layer/mod.rs index 1b9fbcf4..88c0cd8f 100644 --- a/volo-http/src/server/layer/mod.rs +++ b/volo-http/src/server/layer/mod.rs @@ -1,4 +1,4 @@ -//! Collections of some useful [`Layer`]s. +//! Collections of some useful `Layer`s. //! //! See [`FilterLayer`] and [`TimeoutLayer`] for more details. diff --git a/volo-http/src/server/utils/multipart.rs b/volo-http/src/server/utils/multipart.rs index 30c73134..44662e6b 100644 --- a/volo-http/src/server/utils/multipart.rs +++ b/volo-http/src/server/utils/multipart.rs @@ -77,7 +77,7 @@ use crate::{ /// /// # Body Limitation /// -/// Since the body is unlimited, so it is recommended to use [`BodyLimitLayer`] to limit the size of +/// Since the body is unlimited, so it is recommended to use [`BodyLimitLayer`](crate::server::layer::BodyLimitLayer) to limit the size of /// the body. /// /// ```rust,no_run @@ -117,6 +117,7 @@ impl<'r> Multipart<'r> { /// while let Some(field) = multipart.next_field().await? { /// let name = field.name().unwrap().to_string(); // Get field name /// let data = field.bytes().await?; // Get field data + /// } /// # } /// ``` pub async fn next_field(&mut self) -> Result>, MultipartRejectionError> {