mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 15:30:16 +01:00
docs: add warning icon for extractor order (#2027)
This commit is contained in:
parent
eafee2d2f4
commit
8374c3e789
4 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ use std::{
|
|||
|
||||
/// Extractor that parses `multipart/form-data` requests (commonly used with file uploads).
|
||||
///
|
||||
/// Since extracting multipart form data from the request requires consuming the body, the
|
||||
/// ⚠️ Since extracting multipart form data from the request requires consuming the body, the
|
||||
/// `Multipart` extractor must be *last* if there are multiple extractors in a handler.
|
||||
/// See ["the order of extractors"][order-of-extractors]
|
||||
///
|
||||
|
|
|
@ -22,7 +22,7 @@ use std::{
|
|||
|
||||
/// Extractor that parses `multipart/form-data` requests (commonly used with file uploads).
|
||||
///
|
||||
/// Since extracting multipart form data from the request requires consuming the body, the
|
||||
/// ⚠️ Since extracting multipart form data from the request requires consuming the body, the
|
||||
/// `Multipart` extractor must be *last* if there are multiple extractors in a handler.
|
||||
/// See ["the order of extractors"][order-of-extractors]
|
||||
///
|
||||
|
|
|
@ -16,7 +16,7 @@ use serde::Serialize;
|
|||
/// requests and `application/x-www-form-urlencoded` encoded request bodies for other methods. It
|
||||
/// supports any type that implements [`serde::Deserialize`].
|
||||
///
|
||||
/// Since parsing form data might require consuming the request body, the `Form` extractor must be
|
||||
/// ⚠️ Since parsing form data might require consuming the request body, the `Form` extractor must be
|
||||
/// *last* if there are multiple extractors in a handler. See ["the order of
|
||||
/// extractors"][order-of-extractors]
|
||||
///
|
||||
|
|
|
@ -21,7 +21,7 @@ use serde::{de::DeserializeOwned, Serialize};
|
|||
/// type.
|
||||
/// - Buffering the request body fails.
|
||||
///
|
||||
/// Since parsing JSON requires consuming the request body, the `Json` extractor must be
|
||||
/// ⚠️ Since parsing JSON requires consuming the request body, the `Json` extractor must be
|
||||
/// *last* if there are multiple extractors in a handler.
|
||||
/// See ["the order of extractors"][order-of-extractors]
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue