This commit is contained in:
David Pedersen
2023-03-24 15:15:21 +01:00
parent 11a543a409
commit 1fd6dbb4e6
3 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ use tower_layer::Layer;
/// ///
/// This middleware provides ways to configure that. /// This middleware provides ways to configure that.
/// ///
/// Note that if an extractor consumes the body directly with [`Body::data`], or similar, the /// Note that if an extractor consumes the body directly with [`Body::poll_frame`], or similar, the
/// default limit is _not_ applied. /// default limit is _not_ applied.
/// ///
/// # Difference between `DefaultBodyLimit` and [`RequestBodyLimit`] /// # Difference between `DefaultBodyLimit` and [`RequestBodyLimit`]
@@ -63,7 +63,7 @@ use tower_layer::Layer;
/// extractors and want to sure a limit is also applied there then [`RequestBodyLimit`] should be /// extractors and want to sure a limit is also applied there then [`RequestBodyLimit`] should be
/// used. /// used.
/// ///
/// [`Body::data`]: http_body::Body::data /// [`Body::poll_frame`]: http_body::Body::poll_frame
/// [`Bytes`]: bytes::Bytes /// [`Bytes`]: bytes::Bytes
/// [`Json`]: https://docs.rs/axum/0.6.0/axum/struct.Json.html /// [`Json`]: https://docs.rs/axum/0.6.0/axum/struct.Json.html
/// [`Form`]: https://docs.rs/axum/0.6.0/axum/struct.Form.html /// [`Form`]: https://docs.rs/axum/0.6.0/axum/struct.Form.html
+1 -1
View File
@@ -33,7 +33,7 @@ define_rejection! {
/// Encountered some other error when buffering the body. /// Encountered some other error when buffering the body.
/// ///
/// This can _only_ happen when you're using [`tower_http::limit::RequestBodyLimitLayer`] or /// This can _only_ happen when you're using [`tower_http::limit::RequestBodyLimitLayer`] or
/// otherwise wrapping request bodies in [`http_body::Limited`]. /// otherwise wrapping request bodies in [`http_body_util::Limited`].
pub struct LengthLimitError(Error); pub struct LengthLimitError(Error);
} }
-3
View File
@@ -573,9 +573,6 @@ impl Router {
/// Convert this router into a [`MakeService`], that is a [`Service`] whose /// Convert this router into a [`MakeService`], that is a [`Service`] whose
/// response is another service. /// response is another service.
/// ///
/// This is useful when running your application with hyper's
/// [`Server`](hyper::server::Server):
///
/// ``` /// ```
/// use axum::{ /// use axum::{
/// routing::get, /// routing::get,