docs: add warning icon for extractor order (#2027)

This commit is contained in:
Azzam S.A
2023-06-05 12:05:53 +02:00
committed by GitHub
parent eafee2d2f4
commit 8374c3e789
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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]
///
+1 -1
View File
@@ -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]
///
+1 -1
View File
@@ -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]
///
+1 -1
View File
@@ -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]
///