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

Function http_response_fail

examples/http_server.rs:132–134  ·  view source on GitHub ↗
(_request: Request<Body>)

Source from the content-addressed store, hash-verified

130}
131
132async fn http_response_fail(_request: Request<Body>) -> Result<Response<Body>> {
133 Err(anyhow::anyhow!("error creating response"))
134}
135
136async fn http_body_fail(_request: Request<Body>) -> Result<Response<Body>> {
137 let body = StreamBody::new(once_future(async move {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected