File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,9 +269,9 @@ If an extractor fails it will return a response with the error and your
269
269
handler will not be called. To customize the error response you have two
270
270
options:
271
271
272
- 1 . Use ` Result<T, T::Rejection> ` as your extractor like shown in [ "Optional
273
- extractors" ] ( #optional-extractors ) . This works well if you're only using
274
- the extractor in a single handler.
272
+ 1 . Use ` Result<T, T::Rejection> ` as your extractor like shown in
273
+ [ "Handling extractor rejections" ] ( #handling-extractor-rejections ) .
274
+ This works well if you're only using the extractor in a single handler.
275
275
2 . Create your own extractor that in its [ ` FromRequest ` ] implementation calls
276
276
one of axum's built in extractors but returns a different response for
277
277
rejections. See the [ customize-extractor-error] example for more details.
You can’t perform that action at this time.
0 commit comments