mirror of
https://github.com/tokio-rs/axum.git
synced 2025-02-16 18:31:51 +01:00
fix docs
This commit is contained in:
parent
11a543a409
commit
1fd6dbb4e6
3 changed files with 3 additions and 6 deletions
|
@ -8,7 +8,7 @@ use tower_layer::Layer;
|
|||
///
|
||||
/// 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.
|
||||
///
|
||||
/// # 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
|
||||
/// used.
|
||||
///
|
||||
/// [`Body::data`]: http_body::Body::data
|
||||
/// [`Body::poll_frame`]: http_body::Body::poll_frame
|
||||
/// [`Bytes`]: bytes::Bytes
|
||||
/// [`Json`]: https://docs.rs/axum/0.6.0/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.6.0/axum/struct.Form.html
|
||||
|
|
|
@ -33,7 +33,7 @@ define_rejection! {
|
|||
/// Encountered some other error when buffering the body.
|
||||
///
|
||||
/// 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -573,9 +573,6 @@ impl Router {
|
|||
/// Convert this router into a [`MakeService`], that is a [`Service`] whose
|
||||
/// response is another service.
|
||||
///
|
||||
/// This is useful when running your application with hyper's
|
||||
/// [`Server`](hyper::server::Server):
|
||||
///
|
||||
/// ```
|
||||
/// use axum::{
|
||||
/// routing::get,
|
||||
|
|
Loading…
Add table
Reference in a new issue