axum/axum-core/src/response
Nathaniel McCallum 8084b242d5
Add response::ErrorResponse and response::Result (#921)
* feat: add response::{Error, Result}

This type makes for efficient use of the `?` operator when in a function
with multiple return error types that all implement `IntoResponse`.

Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>

* misc adjustments from PR review

* Rename to `ErrorResponse` and `ResultResponse`

* nitpicky docs changes

* update changelog

* changelog wording

* Apply suggestions from code review

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-04-21 16:24:29 +02:00
..
append_headers.rs Add AppendHeaders (#927) 2022-04-17 23:14:04 +02:00
into_response.rs Add AppendHeaders (#927) 2022-04-17 23:14:04 +02:00
into_response_parts.rs Add AppendHeaders (#927) 2022-04-17 23:14:04 +02:00
mod.rs Add response::ErrorResponse and response::Result (#921) 2022-04-21 16:24:29 +02:00