mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 15:49:16 +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
|
A handler function is an async function that takes any number of
|
||||||
"extractors" as arguments. An extractor is a type that implements
|
"extractors" as arguments. An extractor is a type that implements
|
||||||
[`FromRequest`](crate::extract::FromRequest)
|
[`FromRequest`] or [`FromRequestParts`].
|
||||||
or [`FromRequestParts`](crate::extract::FromRequestParts).
|
|
||||||
|
|
||||||
For example, [`Json`] is an extractor that consumes the request body and
|
For example, [`Json`] is an extractor that consumes the request body and
|
||||||
deserializes it as JSON into some target type:
|
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
|
This means you cannot accidentally override the status or body as [`IntoResponseParts`] only allows
|
||||||
setting headers and extensions.
|
setting headers and extensions.
|
||||||
|
|
||||||
Use [`Response`](crate::response::Response) for more low level control:
|
Use [`Response`] for more low level control:
|
||||||
|
|
||||||
```rust,no_run
|
```rust,no_run
|
||||||
use axum::{
|
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
|
`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
|
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
|
router like [`get`]. See [`handler`](crate::handler) for more details on handlers.
|
||||||
more details on handlers.
|
|
||||||
|
|
||||||
# Static paths
|
# Static paths
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue