Skip to content

Commit

Permalink
Update extract.md (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
liigo authored Dec 19, 2022
1 parent 71e8329 commit 978ae63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion axum/src/docs/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ 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).
[`FromRequest`](crate::extract::FromRequest)
or [`FromRequestParts`](crate::extract::FromRequestParts).

For example, [`Json`] is an extractor that consumes the request body and
deserializes it as JSON into some target type:
Expand Down

0 comments on commit 978ae63

Please sign in to comment.