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
Sabrina Jewson
c6e6b4ea32
Remove .close()
, and document clean WebSocket closing ( #2974 )
2024-10-11 11:31:43 +02:00
Jonas Platte
a0f310a492
Make into_future on Serve, WithGracefulShutdown independent of tokio ( #2975 )
2024-10-11 10:57:05 +02:00
Yann Simon
b3cd8d066d
state always need to implement Clone ( #2972 )
2024-10-11 10:06:50 +02:00
Horu
2f18abb7fa
Update methods to create FromFnLayer
( #2966 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-10-10 22:23:55 +00:00
novacrazy
af95794e7d
avoid cloning the state in layer
2024-10-10 22:29:04 +02:00
Yann Simon
2dc164b4f8
Add test to cover state cloning in layer
2024-10-10 22:29:04 +02:00
novacrazy
1e118ccca9
Avoid cloning the uri/path
2024-10-10 22:28:31 +02:00
novacrazy
9feb526c03
remove one clone
2024-10-10 10:01:08 +02:00
Yann Simon
11fe5c737c
cover clone in fallback with tests
2024-10-10 10:01:08 +02:00
novacrazy
b363354eaa
avoid one state clone
...
This is an extraction of a part of https://github.com/tokio-rs/axum/pull/2865
2024-10-09 23:49:56 +02:00
Flamenco
19b99ea917
Update middleware.md ( #2967 )
2024-10-09 12:22:06 +02:00
Sabrina Jewson
5512b5b91f
fix: Avoid setting content-length before middleware ( #2897 )
2024-10-06 22:21:45 +02:00
Sabrina Jewson
822db3b1af
Add MethodFilter::CONNECT
( #2961 )
2024-10-06 19:09:06 +00:00
Sabrina Jewson
4b4dac4d86
Add axum_extra::json!
( #2962 )
2024-10-06 19:01:10 +00:00
Sabrina Jewson
64e6edac05
Add support for WebSockets over HTTP/2 ( #2894 )
2024-10-06 07:58:34 +00:00
Jonas Platte
d783a8b17e
Add matchit upgrade to axum changelog
2024-10-05 11:44:31 +00:00
Jonas Platte
47791cb593
Remove versions from internal dev-dependencies
...
This breaks the cyclic dependencies for publishing.
2024-10-05 11:44:31 +00:00
Jonas Platte
9a69e415fb
Release axum 0.8.0-alpha.1 and related crates ( #2958 )
2024-10-05 11:20:05 +02:00
Jonas Platte
20a0624795
Replace Router::{map_inner, tap_inner_mut} by macros ( #2954 )
2024-10-04 17:00:50 +00:00
zleyyij
31a87f8b2b
axum-extra: Remove stray deprecation in multipart builder ( #2957 )
2024-10-04 16:59:26 +00:00
David Mládek
6318b57fda
chore: Upgrade matchit to 0.8 ( #2645 )
2024-10-03 15:46:58 +00:00
Jonas Platte
5db62e8452
Remove examples/listen-multiple-addrs ( #2951 )
2024-09-30 23:23:19 +02:00
Keir Lawson
20b9445347
Reference the requirements for from_fn_with_state ( #2950 )
2024-09-30 15:55:53 +00:00
David Mládek
4944ed3b1c
Update MSRV in READMEs ( #2948 )
2024-09-30 10:18:49 +02:00
Jonas Platte
928d31d1d7
ci: Only save cache from main ( #2946 )
2024-09-29 21:15:49 +00:00
Jonas Platte
fb4b1899eb
Remove mutexes around boxed services ( #2947 )
2024-09-29 21:04:31 +02:00
creativcoder
3eb8854839
Move Html from axum-extra to axum ( #2633 )
2024-09-29 09:00:38 +00:00