Type Alias axum_core::response::Response

source ·
pub type Response<T = BoxBody> = Response<T>;
Expand description

Type alias for http::Response whose body type defaults to BoxBody, the most common body type used with axum.

Aliased Type§

struct Response<T = BoxBody> { /* private fields */ }

Trait Implementations§

source§

impl<B> IntoResponse for Response<B>
where B: Body<Data = Bytes> + Send + 'static, B::Error: Into<BoxError>,

source§

fn into_response(self) -> Response

Create a response.