mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-30 14:31:16 +00:00
Update extract.md (#1653)
This commit is contained in:
parent
71e83291e1
commit
978ae63358
@ -20,7 +20,8 @@ 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`](crate::extract::FromRequest)
|
||||||
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user