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