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§

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

Trait Implementations§

Source§

impl FromResponse for Response

Implementation of FromResponse for axum::response::Response.

This allows converting a ClientResponse (from a client-side HTTP request) into an axum::Response for server-side handling. The response’s status, headers, and body are transferred from the client response to the axum response.

Source§

fn from_response( res: ClientResponse, ) -> impl Future<Output = Result<Self, ServerFnError>>