MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / handle

Method handle

crates/test-programs/src/bin/p2_api_proxy_streaming.rs:16–20  ·  view source on GitHub ↗
(request: IncomingRequest, response_out: ResponseOutparam)

Source from the content-addressed store, hash-verified

14
15impl test_programs::proxy::exports::wasi::http::incoming_handler::Guest for Handler {
16 fn handle(request: IncomingRequest, response_out: ResponseOutparam) {
17 executor::run(async move {
18 handle_request(request, response_out).await;
19 })
20 }
21}
22
23async fn handle_request(request: IncomingRequest, response_out: ResponseOutparam) {

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
handle_requestFunction · 0.70

Tested by

no test coverage detected