2021-11-30 14:46:13 +01:00
|
|
|
//! Types and traits for generating responses.
|
|
|
|
|
//!
|
|
|
|
|
//! See [`axum::response`] for more details.
|
|
|
|
|
//!
|
|
|
|
|
//! [`axum::response`]: https://docs.rs/axum/latest/axum/response/index.html
|
|
|
|
|
|
2022-03-01 00:04:33 +01:00
|
|
|
use crate::body::BoxBody;
|
|
|
|
|
|
2022-04-17 23:14:04 +02:00
|
|
|
mod append_headers;
|
2022-03-01 00:04:33 +01:00
|
|
|
mod into_response;
|
|
|
|
|
mod into_response_parts;
|
|
|
|
|
|
|
|
|
|
pub use self::{
|
2022-04-17 23:14:04 +02:00
|
|
|
append_headers::AppendHeaders,
|
2022-03-01 00:04:33 +01:00
|
|
|
into_response::IntoResponse,
|
2022-03-02 12:41:14 +01:00
|
|
|
into_response_parts::{IntoResponseParts, ResponseParts, TryIntoHeaderError},
|
2021-11-30 14:46:13 +01:00
|
|
|
};
|
|
|
|
|
|
2021-12-05 18:16:46 +00:00
|
|
|
/// Type alias for [`http::Response`] whose body type defaults to [`BoxBody`], the most common body
|
2021-12-06 10:30:09 +01:00
|
|
|
/// type used with axum.
|
2021-12-05 18:16:46 +00:00
|
|
|
pub type Response<T = BoxBody> = http::Response<T>;
|