axum/axum-core/src
David Pedersen 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 <jplatte@users.noreply.github.com>

* changelog

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2022-02-28 23:04:33 +00:00
..
extract Add IntoResponseParts (#797) 2022-02-28 23:04:33 +00:00
response Add IntoResponseParts (#797) 2022-02-28 23:04:33 +00:00
body.rs Move FromRequest and IntoResponse into new axum-core crate (#564) 2021-11-30 13:46:13 +00:00
error.rs Change error type for RequestParts::try_into_request (#639) 2022-01-23 18:01:52 +01:00
lib.rs Move FromRequest and IntoResponse into new axum-core crate (#564) 2021-11-30 13:46:13 +00:00
macros.rs Add IntoResponseParts (#797) 2022-02-28 23:04:33 +00:00