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

Function http_home

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

Source from the content-addressed store, hash-verified

26}
27
28async fn http_home(_request: Request<Body>) -> Result<Response<Body>> {
29 // To send a single string as the response body, use `Responder::respond`.
30 Ok(Response::new(
31 "Hello, wasi:http/proxy world!\n".to_owned().into(),
32 ))
33}
34
35async fn http_wait_response(_request: Request<Body>) -> Result<Response<Body>> {
36 // Get the time now

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected