mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-19 00:00:14 +02:00
Update docs.rs links to 0.8 (#3120)
This commit is contained in:
@@ -66,8 +66,8 @@ use tower_layer::Layer;
|
||||
///
|
||||
/// [`Body::poll_frame`]: http_body::Body::poll_frame
|
||||
/// [`Bytes`]: bytes::Bytes
|
||||
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
|
||||
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
|
||||
/// [`FromRequest`]: crate::extract::FromRequest
|
||||
/// [`RequestBodyLimit`]: tower_http::limit::RequestBodyLimit
|
||||
/// [`RequestExt::with_limited_body`]: crate::RequestExt::with_limited_body
|
||||
@@ -114,8 +114,8 @@ impl DefaultBodyLimit {
|
||||
/// ```
|
||||
///
|
||||
/// [`Bytes`]: bytes::Bytes
|
||||
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
|
||||
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
|
||||
pub const fn disable() -> Self {
|
||||
Self {
|
||||
kind: DefaultBodyLimitKind::Disable,
|
||||
@@ -147,8 +147,8 @@ impl DefaultBodyLimit {
|
||||
/// ```
|
||||
///
|
||||
/// [`Bytes::from_request`]: bytes::Bytes
|
||||
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
|
||||
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
|
||||
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
|
||||
pub const fn max(limit: usize) -> Self {
|
||||
Self {
|
||||
kind: DefaultBodyLimitKind::Limit(limit),
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
///
|
||||
/// This trait can be derived using `#[derive(FromRef)]`.
|
||||
///
|
||||
/// [`State`]: https://docs.rs/axum/0.7/axum/extract/struct.State.html
|
||||
/// [`State`]: https://docs.rs/axum/0.8/axum/extract/struct.State.html
|
||||
// NOTE: This trait is defined in axum-core, even though it is mainly used with `State` which is
|
||||
// defined in axum. That allows crate authors to use it when implementing extractors.
|
||||
pub trait FromRef<T> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! See [`axum::extract`] for more details.
|
||||
//!
|
||||
//! [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
|
||||
//! [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
|
||||
|
||||
use crate::{body::Body, response::IntoResponse};
|
||||
use http::request::Parts;
|
||||
@@ -46,11 +46,11 @@ mod private {
|
||||
///
|
||||
/// See [`axum::extract`] for more general docs about extractors.
|
||||
///
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
|
||||
#[rustversion::attr(
|
||||
since(1.78),
|
||||
diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
|
||||
)
|
||||
)]
|
||||
pub trait FromRequestParts<S>: Sized {
|
||||
@@ -75,11 +75,11 @@ pub trait FromRequestParts<S>: Sized {
|
||||
///
|
||||
/// See [`axum::extract`] for more general docs about extractors.
|
||||
///
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
|
||||
#[rustversion::attr(
|
||||
since(1.78),
|
||||
diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
|
||||
)
|
||||
)]
|
||||
pub trait FromRequest<S, M = private::ViaRequest>: Sized {
|
||||
|
||||
@@ -53,7 +53,7 @@ where
|
||||
///
|
||||
/// Prefer using [`TypedHeader`] to extract only the headers you need.
|
||||
///
|
||||
/// [`TypedHeader`]: https://docs.rs/axum/0.7/axum/extract/struct.TypedHeader.html
|
||||
/// [`TypedHeader`]: https://docs.rs/axum/0.8/axum/extract/struct.TypedHeader.html
|
||||
impl<S> FromRequestParts<S> for HeaderMap
|
||||
where
|
||||
S: Send + Sync,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! See [`axum::response`] for more details.
|
||||
//!
|
||||
//! [`axum::response`]: https://docs.rs/axum/0.7/axum/response/index.html
|
||||
//! [`axum::response`]: https://docs.rs/axum/0.8/axum/response/index.html
|
||||
|
||||
use crate::body::Body;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user