use axum::{ body::Body, http::{Response, StatusCode}, response::IntoResponse, }; use axum_enum_response::EnumIntoResponse; use futures::StreamExt; #[derive(EnumIntoResponse)] enum TestResponse { #[status_code(INTERNAL_SERVER_ERROR)] InternalServerError, } async fn get_body(res: Response
) -> String { let stream = res.into_body().into_data_stream(); String::from_utf8( stream .collect::