use http::Response;
use http_body_reader::ResponseExt as _;
use http_body_util::Full;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let message = "Hello world";
let response = Response::builder().body(Full::new(message.as_ref()))?;
assert_eq!(response.body_reader().utf8().await?, message);
Ok(())
}