mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 07:20:12 +01:00
docs: Remove unnecessary link targets (#2778)
This commit is contained in:
parent
89202ac379
commit
7d43b4651d
3 changed files with 3 additions and 5 deletions
|
@ -19,8 +19,7 @@ Types and traits for extracting data from requests.
|
|||
|
||||
A handler function is an async function that takes any number of
|
||||
"extractors" as arguments. An extractor is a type that implements
|
||||
[`FromRequest`](crate::extract::FromRequest)
|
||||
or [`FromRequestParts`](crate::extract::FromRequestParts).
|
||||
[`FromRequest`] or [`FromRequestParts`].
|
||||
|
||||
For example, [`Json`] is an extractor that consumes the request body and
|
||||
deserializes it as JSON into some target type:
|
||||
|
|
|
@ -166,7 +166,7 @@ In general you can return tuples like:
|
|||
This means you cannot accidentally override the status or body as [`IntoResponseParts`] only allows
|
||||
setting headers and extensions.
|
||||
|
||||
Use [`Response`](crate::response::Response) for more low level control:
|
||||
Use [`Response`] for more low level control:
|
||||
|
||||
```rust,no_run
|
||||
use axum::{
|
||||
|
|
|
@ -5,8 +5,7 @@ can be either static, a capture, or a wildcard.
|
|||
|
||||
`method_router` is the [`MethodRouter`] that should receive the request if the
|
||||
path matches `path`. `method_router` will commonly be a handler wrapped in a method
|
||||
router like [`get`](crate::routing::get). See [`handler`](crate::handler) for
|
||||
more details on handlers.
|
||||
router like [`get`]. See [`handler`](crate::handler) for more details on handlers.
|
||||
|
||||
# Static paths
|
||||
|
||||
|
|
Loading…
Reference in a new issue