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

Function http_not_found

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

Source from the content-addressed store, hash-verified

142}
143
144async fn http_not_found(_request: Request<Body>) -> Result<Response<Body>> {
145 let response = Response::builder()
146 .status(StatusCode::NOT_FOUND)
147 .body(Body::empty())
148 .unwrap();
149 Ok(response)
150}

Callers 1

mainFunction · 0.70

Calls 1

emptyFunction · 0.85

Tested by

no test coverage detected