MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / http_echo

Function http_echo

examples/http_server.rs:90–93  ·  view source on GitHub ↗
(request: Request<Body>)

Source from the content-addressed store, hash-verified

88}
89
90async fn http_echo(request: Request<Body>) -> Result<Response<Body>> {
91 let (_parts, body) = request.into_parts();
92 Ok(Response::new(body))
93}
94
95async fn http_echo_headers(request: Request<Body>) -> Result<Response<Body>> {
96 let mut response = Response::builder();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected