MCPcopy Create free account
hub / github.com/aws/aws-lambda-rust-runtime / text_into_response

Function text_into_response

lambda-http/src/response.rs:453–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

451
452 #[tokio::test]
453 async fn text_into_response() {
454 let response = "text".into_response().await;
455 match response.body() {
456 Body::Text(text) => assert_eq!(text, "text"),
457 _ => panic!("invalid body"),
458 }
459 }
460
461 #[tokio::test]
462 async fn bytes_into_response() {

Callers

nothing calls this directly

Calls 1

into_responseMethod · 0.45

Tested by

no test coverage detected