Files
axum/axum-core/src/response/mod.rs
T

22 lines
616 B
Rust
Raw Normal View History

//! 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},
};
/// Type alias for [`http::Response`] whose body type defaults to [`BoxBody`], the most common body
/// type used with axum.
pub type Response<T = BoxBody> = http::Response<T>;