Add OptionalPath extractor (#1889)

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
Jonas Platte
2023-04-09 12:23:13 +00:00
committed by GitHub
co-authored by David Pedersen
parent 946d8c3253
commit 43b2d52403
6 changed files with 124 additions and 13 deletions
+3 -5
View File
@@ -1,6 +1,8 @@
//! Additional extractors.
mod cached;
mod optional_path;
mod with_rejection;
#[cfg(feature = "form")]
mod form;
@@ -14,9 +16,7 @@ mod query;
#[cfg(feature = "multipart")]
pub mod multipart;
mod with_rejection;
pub use self::cached::Cached;
pub use self::{cached::Cached, optional_path::OptionalPath, with_rejection::WithRejection};
#[cfg(feature = "cookie")]
pub use self::cookie::CookieJar;
@@ -39,5 +39,3 @@ pub use self::multipart::Multipart;
#[cfg(feature = "json-lines")]
#[doc(no_inline)]
pub use crate::json_lines::JsonLines;
pub use self::with_rejection::WithRejection;