axum_core::response

Type Alias Response

Source
pub type Response<T = Body> = Response<T>;
Expand description

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

Aliased Type§

struct Response<T = Body> { /* 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.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.