mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-30 00:00:32 +02:00
Clarify body extractors
This commit is contained in:
@@ -92,6 +92,9 @@
|
||||
//! # };
|
||||
//! ```
|
||||
//!
|
||||
//! Note that only one extractor can consume the request body. If multiple body extractors are
|
||||
//! applied a `500 Internal Server Error` response will be returned.
|
||||
//!
|
||||
//! # Optional extractors
|
||||
//!
|
||||
//! Wrapping extractors in `Option` will make them optional:
|
||||
|
||||
Reference in New Issue
Block a user