Commit graph

1500 commits

Author SHA1 Message Date
Tobias Bieniek
9ec18b9a5d
axum: Add content-length header assertions to middleware_adding_body test (#3033) 2024-11-16 23:41:27 +01:00
Jonas Platte
17016d6dd6
Merge branch 'v0.7.x' into jplatte/merge-v0.7.x 2024-11-16 17:12:32 +01:00
Jonas Platte
9983bc1da4
Bump versions 2024-11-16 17:10:03 +01:00
Tobias Bieniek
a8ce6fa030
axum-extra: Add links to features table (#3030) 2024-11-16 17:07:38 +01:00
Sabrina Jewson
ce3d42947e
fix: Avoid setting content-length before middleware (#3031) 2024-11-16 16:50:25 +01:00
David Mládek
893bb75e3b
CI: allow pin-project-lite in public dependencies (#3020) 2024-11-16 16:25:41 +01:00
Tobias Bieniek
f09e7fba9d
axum-extra: Add links to features table (#3030) 2024-11-16 11:14:51 +01:00
Jonas Platte
dee0985dfb
Merge branch 'v0.7.x' into jplatte/merge-v0.7.8 2024-11-14 23:24:29 +01:00
Jonas Platte
feee742ca1
Bump versions 2024-11-14 23:13:41 +01:00
Jonas Platte
da4580247a
Some documentation fixes (#3027) 2024-11-14 23:01:27 +01:00
Leon Lux
8bc326cc3d
Improve docs regarding state and extensions (#2991)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-14 23:00:51 +01:00
Benjamin Sparks
b30cdcfbea
Remove unneeded macro usage (#2995)
Co-authored-by: Benjamin Sparks <b.sparks@alugha.com>
2024-11-14 23:00:25 +01:00
Jan
185804398f
fix(sse): skip sse incompatible chars of serde_json::RawValue (#2992) 2024-11-14 22:59:56 +01:00
Erin
43814c174f
Fix TSR redirecting to top-level inside nested Router (#2993)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-14 22:58:54 +01:00
David Mládek
eb6bea38d0
chore: fix new clippy lint (#2994) 2024-11-14 22:57:29 +01:00
Flamenco
8d7eada034
Update middleware.md (#2967) 2024-11-14 22:57:16 +01:00
David Mládek
a7b7d56cfb
Update changelog (#2985) 2024-11-14 22:55:11 +01:00
Leon Lux
c5a3c66a27
Add method_not_allowed_fallback to router (#2903)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-11-14 22:53:41 +01:00
Jonas Platte
a59a82c2af
Replace Router::{map_inner, tap_inner_mut} by macros (#2954) 2024-11-14 22:53:35 +01:00
oxalica
dcb4af68de
Add struct NoContent as a self-described shortcut (#2978) 2024-11-14 22:44:01 +01:00
novacrazy
236781cfdc
Avoid cloning the uri/path 2024-11-14 22:42:06 +01:00
novacrazy
c417a28142
Avoid cloning the state in layer 2024-11-14 22:39:32 +01:00
Yann Simon
296dfe1a40
Add test to cover state cloning in layer 2024-11-14 22:35:30 +01:00
novacrazy
092719c217
Remove one clone 2024-11-14 22:34:06 +01:00
Yann Simon
e66be09d59
Cover clone in fallback with tests 2024-11-14 22:30:58 +01:00
novacrazy
0d4e224cae
Avoid one state clone
This is an extraction of a part of https://github.com/tokio-rs/axum/pull/2865
2024-11-14 22:17:24 +01:00
Bouke van der Bijl
bf0c14b8af
Ensure we include the port when parsing authority (#2242)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Yann Simon <yann.simon.fr@gmail.com>
2024-11-14 22:05:58 +01:00
Sabrina Jewson
c2e7fc0b3d
Add MethodFilter::CONNECT (#2961) 2024-11-14 21:49:11 +01:00
Sabrina Jewson
b71d4fa557
Add axum_extra::json! (#2962) 2024-11-14 21:25:54 +01:00
zleyyij
5b6d1caaa7
axum-extra: Remove stray deprecation in multipart builder (#2957) 2024-11-14 21:20:26 +01:00
zleyyij
bdefe59648
Add multipart/form-data response builders to axum-extra (#2654) 2024-11-14 21:20:10 +01:00
Jonas Platte
56c709b33d
Some documentation fixes (#3027) 2024-11-14 21:12:16 +01:00
Endoze
62e88df629
ECOSYSTEM: add axum-rails-cookie (#3025) 2024-11-12 17:54:38 +01:00
Hayashi Mikihiro
0774e59704
Remove once_cell from jwt example (#3014)
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-11-11 16:57:10 +00:00
Vegard Sandengen
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:🇩🇪: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 <david.mladek.cz@gmail.com>
2024-11-11 16:56:25 +00:00
Hayashi Mikihiro
6e0559e687
Update low-level-rustls example (#3013)
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-11-11 16:55:43 +00:00
David Mládek
269565ff93
CI: allow pin-project-lite in public dependencies (#3020) 2024-11-07 17:27:41 +01:00
Leon Lux
280d16a610
Improve docs regarding state and extensions (#2991)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-10-21 21:47:20 +02:00
Jonas Platte
72819848e3
Upgrade matchit (#2997) 2024-10-21 08:51:14 +00:00
Benjamin Sparks
ffeb4f9407
Add Scheme extractor (#2507) 2024-10-19 22:04:24 +00:00
David Mládek
89fec69b01
Use explicit CI runner version (#2996) 2024-10-18 21:04:24 +02:00
Jan
04fee944ad
fix(sse): skip sse incompatible chars of serde_json::RawValue (#2992) 2024-10-17 16:49:39 +02:00
Benjamin Sparks
c5a451d94b
Remove unneeded macro usage (#2995)
Co-authored-by: Benjamin Sparks <b.sparks@alugha.com>
2024-10-17 16:47:51 +02:00
Erin
114369418d
Fix TSR redirecting to top-level inside nested Router (#2993)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-10-17 16:43:14 +02: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
24d24f4ccb
Update changelog (#2985) 2024-10-14 10:31:47 +02:00
Uli
bc7cb1a333
ECOSYSTEM.md: Add Pods-Blitz (#2983) 2024-10-14 04:21:02 -04:00
Leon Lux
73db1631c3
Add method_not_allowed_fallback to router (#2903)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-10-12 09:36:56 +00:00
oxalica
0712a46cd9
Add struct NoContent as a self-described shortcut (#2978) 2024-10-11 15:54:11 +00:00