pub trait IntoResponse {
// Required method
fn into_response(self) -> Response<Body>;
}Expand description
将类型转换为 HTTP 响应的 trait
类似于 Axum 的 IntoResponse trait,用于将各种类型转换为 HTTP 响应。
Required Methods§
Sourcefn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
将自身转换为 HTTP 响应