Yann Simon
99068f5a4b
Revert "Fix IntoResponse for tuples overriding error response codes ( #3603 )"
...
This reverts commit 0e961504c2 .
2026-04-06 18:47:42 +02:00
Mathieu
4fa5d80ab7
fix(axum-extra): escape filename in Content-Disposition header ( #3664 )
2026-04-03 08:49:48 +02:00
Antonio Souza
2773966059
Fix InternalServerError docs to match current behavior ( #3640 )
...
Signed-off-by: Antonio Souza <[email protected] >
2026-04-03 08:49:48 +02:00
417dc25280
Fix IntoResponse for tuples overriding error response codes ( #3603 )
...
Co-authored-by: David Pedersen <[email protected] >
Co-authored-by: Yann Simon <[email protected] >
2026-04-03 08:49:48 +02:00
Consoli
2587f22a05
docs: Document that vpath and json macros are feature-gated ( #3615 )
2026-04-03 08:49:48 +02:00
Asger Hautop Drewsen
f51f3ba436
axum-extra: Add trailing newline to pretty JSON response ( #3526 )
2025-12-20 14:03:58 +01:00
Alice Ryhl
816407a816
Fix integer underflow in try_range_response for empty files ( #3566 )
2025-12-20 14:03:46 +01:00
Poliorcetics
a77c2cf478
fix(axum-extra): don't require S generic param when using FileStream::from_path() ( #3437 )
2025-10-29 16:58:10 +01: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
Theodore Bjernhed and Theodore 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
Jonas Platte
5429ed9bd5
Fix new clippy lints ( #3304 )
2025-04-03 23:22:19 +02:00
Bismit Panda and Tobias Bieniek
12d7d9c03c
Fix documentation for the file-stream response ( #3102 )
...
Co-authored-by: Tobias Bieniek <[email protected] >
2024-12-26 09:04:03 +00:00
YanHeDoki
7c871e9591
Add FileStream response to axum-extra ( #3047 )
2024-12-04 12:33:07 +00:00
Jonas Platte
99c07e4d86
Enable and fix warnings from clippy::uninlined_format_args ( #3063 )
2024-12-03 22:27:14 +01:00
Jonas Platte
f6379558e6
Clean up axum-extra'a new error-response feature ( #3057 )
2024-12-01 11:44:43 +01:00
Leon Lux and Jonas Platte
dc5c202c5f
Add shorthand way to return non-IntoResponse errors ( #3010 )
...
Co-authored-by: Jonas Platte <[email protected] >
2024-11-17 22:12:45 +01:00
Sabrina Jewson
4b4dac4d86
Add axum_extra::json! ( #2962 )
2024-10-06 19:01:10 +00:00
zleyyij
31a87f8b2b
axum-extra: Remove stray deprecation in multipart builder ( #2957 )
2024-10-04 16:59:26 +00:00
creativcoder
3eb8854839
Move Html from axum-extra to axum ( #2633 )
2024-09-29 09:00:38 +00:00
zleyyij
55f9170c7c
Add multipart/form-data response builders to axum-extra ( #2654 )
2024-09-28 19:40:52 +00:00
Jonas Platte
b214e39581
Add more must_use attributes ( #2846 )
...
… so people get a warning when they accidentally add a semicolon after the response expression in a handler function.
Also update changelogs of axum-core, axum-extra.
2024-09-11 19:17:25 +00:00
joeydewaal
fcb45b8d32
Add an Attachment type to axum-extra ( #2789 )
2024-06-19 14:28:15 +02:00
Jonas Platte
8af38763a5
Implement Clone for ErasedJson ( #2142 )
2023-08-02 19:35:04 +00:00
877e3fe4de
Move TypedHeader to axum-extra ( #1850 )
...
Co-authored-by: Michael Scofield <[email protected] >
Co-authored-by: Jonas Platte <[email protected] >
2023-04-21 17:45:31 +02:00
David Pedersen
e97462d452
Add Html, Css, JavaScript, and Wasm response types ( #1921 )
2023-04-17 13:20:17 +02:00
David Pedersen
5606ea3f9e
#[must_use] all the things! (#1809 )
2023-03-03 14:12:35 +01:00
David Pedersen
6b6a415622
Add JsonLines extractor and response ( #1093 )
2022-06-20 20:49:18 +02:00
David Pedersen
19fe93262f
Use impl IntoResponse less in docs ( #1049 )
2022-05-22 13:41:29 +02:00
David Pedersen and Jonas Platte
f12ab072c5
Add IntoResponseParts ( #797 )
...
* Add `IntoResponseParts`
* docs
* Add test
* don't allow overriding body or response
* macroify impls
* re-order things a bit
* Fix tests
* Also allow overriding version
* Move things into separate modules
* docs
* clean up
* fix trybuild test
* remove churn
* simplify buliding response
* fixup test
* fix docs typo
* Use `HeaderValue::from_static`, might be faster
* Bring back `impl IntoResponse` in example
* Remove blanket impl to improve error message
* don't need to set `content-type`
* Apply suggestions from code review
Co-authored-by: Jonas Platte <[email protected] >
* changelog
Co-authored-by: Jonas Platte <[email protected] >
2022-02-28 23:04:33 +00:00
Sabrina Jewson
031e0fd472
Store Bytes in ErasedJson ( #672 )
2021-12-28 10:41:21 +00:00
Guy Lapid
d602682821
Add support for returning pretty JSON response in axum_extra::response::ErasedJson ( #662 )
2021-12-28 09:19:24 +00:00
Sabrina Jewson
7df611319e
Fix axum-extra's optional feature documentation ( #663 )
2021-12-27 18:12:46 +01:00
Kai Jewson
dfb06e721c
Introduce Response type alias as a shorthand for Response<BoxBody> ( #590 )
...
* Introduce `Response` type alias as a shorthand
* Don't re-export `Response` at the crate root
2021-12-05 19:16:46 +01:00
Kai Jewson
2b6dba49cb
Remove the associated Body type on IntoResponse ( #571 )
2021-11-28 18:52:18 +01:00
Pure White
5a5800c1ae
feat: default to charset=utf-8 for text content type ( #554 )
...
* feat: default to charset=utf-8 for text content type
* added changelog && fix comment
* fix workflow
2021-11-25 08:31:30 +00:00
Jonas Platte
b43b9ed69d
Add axum_extra::response::ErasedJson ( #537 )
2021-11-17 22:54:02 +01:00