Trait rama::http::IntoResponse
pub trait IntoResponse {
// Required method
fn into_response(self) -> Response<Body>;
}
Expand description
Trait for generating responses.
Types that implement IntoResponse
can be returned from handlers.
§Implementing IntoResponse
You generally shouldn’t have to implement IntoResponse
manually, as rama
provides implementations for many common types.
Required Methods§
fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.