Commit Graph
107 Commits
Author SHA1 Message Date
Yann Simon da26db264f fix formatting (#3685) 2026-03-11 12:48:37 +01:00
Andrea Bozzo 22f769c7f1 fix: Return specific error message when multipart body limit is exceeded (#3611) 2026-02-26 10:14:20 +00:00
Dominique Martinet 2df78b7072 axum-extra: Remove unused extract::rejection module (#3636) 2026-01-22 08:40:01 +01:00
Jonas Platte e3b32f48b5 Remove deprecated extractors from axum-extra (#3599) 2025-12-27 15:43:01 +00:00
Jonas Platte cc9f151f3c Merge branch 'v0.8.x' 2025-12-27 10:48:19 +01:00
Jonas Platte aba8046921 Deprecate Host and Scheme extractors 2025-12-26 14:48:47 +01:00
Jonas Platte cae6bc3709 axum: Use serde_html_form for Query and Form (#3594) 2025-12-26 13:03:42 +01:00
Brad Dunbar 6d5e6d578a Use extensions directly in from_request_parts (#3542) 2025-11-14 20:38:45 +01:00
Brad Dunbar efc1f57b15 Use extensions directly in from_request_parts (#3542) 2025-10-30 08:40:00 -04:00
tottoto 929512f462 axum-extra: Make axum optional dependency (#3485) 2025-10-29 16:58:10 +01:00
Jonas Platte 16534439f5 Switch serde dependency to serde_core (#3477) 2025-09-28 19:28:32 +02:00
Joel Uckelman aa8f75111a Add axum_extra::extract::Query::try_from_uri (#3460)
`axum::extract::Query` has a try_from_uri, which is useful for testing. This adds the same function to `axum_extra::extract::Query`.
2025-09-28 19:25:25 +02:00
Theodore BjernhedandTheodore Bjernhed 384f393857 Add #[must_use] to types and methods (#3395)
Co-authored-by: Theodore Bjernhed <[email protected]>
2025-09-28 19:19:54 +02:00
Daniel 756bf0037f Implement the OptionalFromRequestParts trait for the Host extractor (#3177) 2025-09-28 19:16:54 +02:00
tottoto d184798937 axum-extra: Make axum optional dependency (#3485) 2025-09-20 22:50:56 +02:00
Jonas Platte 4ab8df5e42 Switch serde dependency to serde_core (#3477) 2025-09-14 08:49:07 +02:00
Joel Uckelman 5d5ba01be9 Add axum_extra::extract::Query::try_from_uri (#3460)
`axum::extract::Query` has a try_from_uri, which is useful for testing. This adds the same function to `axum_extra::extract::Query`.
2025-09-08 10:18:31 +02:00
Theodore Bjernhed 6bc0717b06 Improve value and reference passing efficiency (#3406) 2025-07-11 05:38:45 +02:00
Theodore Bjernhed 1b157a461e Enable and fix control flow related clippy lints 2025-07-09 18:48:28 +00:00
Theodore BjernhedandTheodore Bjernhed fb64e72de9 Add #[must_use] to types and methods (#3395)
Co-authored-by: Theodore Bjernhed <[email protected]>
2025-07-05 19:07:24 +02:00
Theodore Bjernhed 0f255c3c4c style: use Self to avoid unnecessary repetition (#3396) 2025-07-04 21:10:01 +00:00
Daniel 769e4066b1 Implement the OptionalFromRequestParts trait for the Host extractor (#3177) 2025-05-25 21:13:01 +02:00
Paolo Barbolini 869ba86e51 Reduce dependency on futures-util (#3358) 2025-05-25 09:39:35 +02:00
Denis 6bf1fcbb29 Fix recursive call leading to stack overflow when tracing level filter is TRACE (#3312) 2025-04-24 13:03:50 +02:00
Tobias Bieniek e58b166f0e axum-extra/multipart: Use rejection macros for MultipartRejection (#3123) 2024-12-27 23:36:21 +01:00
Tobias Bieniek 5f82540cc1 axum-extra/query: Use rejection macros for QueryRejection (#3122) 2024-12-27 23:02:41 +01:00
Tobias Bieniek 09841ff895 axum-extra/form: Add FailedToDeserializeFormBody rejection variant (#3119) 2024-12-27 12:21:38 +01:00
Tobias Bieniek ed4d560054 axum-extra/form: Use rejection macros for FormRejection (#3111) 2024-12-27 10:02:07 +01:00
Tobias Bieniek 8e78a37660 axum-extra/scheme: Use rejection macros for SchemeMissing rejection (#3113) 2024-12-27 10:01:59 +01:00
htrefil 0b06f0c54e Allow querying of HTTP status codes for query and form rejections (#2781) 2024-12-26 12:21:24 +01:00
Jonas Platte 3bb12abc8d Remove OptionalFromRequestParts impl for Query (#3088) 2024-12-25 18:56:48 +01:00
Tobias Bieniek 9cd5cc4fc1 Query/Form: Use serde_path_to_error to report fields that failed to parse (#3081) 2024-12-20 11:42:56 +01:00
Jonas Platte ec75ee3827 Add a separate trait for optional extractors (#2475) 2024-12-10 02:54:59 +00:00
Claas 2eaed0badc Fix PrivateCookieJar documentation example comments (#3053) 2024-11-28 23:00:14 +00:00
Jonas Platte c7aa6454e7 Fix new clippy lints (#3054) 2024-11-28 23:53:20 +01:00
bf0c14b8af Ensure we include the port when parsing authority (#2242)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Yann Simon <[email protected]>
2024-11-14 22:05:58 +01:00
Jonas Platte 56c709b33d Some documentation fixes (#3027) 2024-11-14 21:12:16 +01:00
Vegard SandengenandDavid Mládek 59a2960e42 Add ErrorKind::DeserializeError to specialize ErrorKind::Message (extract::path::ErrorKind) (#2720)
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde::de::Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.

The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.

Co-authored-by: David Mládek <[email protected]>
2024-11-11 16:56:25 +00:00
Benjamin Sparks ffeb4f9407 Add Scheme extractor (#2507) 2024-10-19 22:04:24 +00:00
David Mládek 65ad603701 chore: fix new clippy lint (#2994) 2024-10-17 12:27:47 +02:00
Jonas Platte 0ddc63f77e Move the Host extractor to axum-extra (#2956) 2024-10-14 22:45:37 +00:00
David Mládek 6318b57fda chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
Zheng LiandJonas Platte 19101f624d Replace async_trait with AFIT / RPITIT (#2308)
Co-authored-by: Jonas Platte <[email protected]>
2024-09-28 21:27:11 +00:00
joeydewaal fcb45b8d32 Add an Attachment type to axum-extra (#2789) 2024-06-19 14:28:15 +02:00
mikihiro c6fd852844 Update sync_wrapper to 1.0.0 from 0.1.1
... and fix CI.
2024-03-23 19:46:20 +01:00
David Mládek 2ec68d6c4d Add rejection tracing to all extractors (#2584) 2024-03-16 22:34:18 +01:00
AlphaKeks 9e31949079 Improve documentation of axum_extra::extract::Query (#2517) 2024-01-15 21:49:40 +01:00
Yann Simon f7c4cd883a Fix link to serde::Deserialize (#2498) 2024-01-09 16:25:17 +00:00
David Pedersen c486cc8207 Implement TypedPath for WithRejection<TypedPath, _> (#2491) 2024-01-04 21:08:20 +01:00
David Pedersen 7ea7e9f618 Use IntoFuture for test RequestBuilder (#2470) 2023-12-30 18:23:53 +01:00