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

Method start_requests

tests/all/cli_tests.rs:1676–1690  ·  view source on GitHub ↗
(
            &self,
        )

Source from the content-addressed store, hash-verified

1674 }
1675
1676 async fn start_requests(
1677 &self,
1678 ) -> Result<(
1679 hyper::client::conn::http1::SendRequest<String>,
1680 tokio::task::JoinHandle<hyper::Result<()>>,
1681 )> {
1682 let tcp = TcpStream::connect(&self.addr)
1683 .await
1684 .context("failed to connect")?;
1685 let tcp = wasmtime_wasi_http::io::TokioIo::new(tcp);
1686 let (send, conn) = hyper::client::conn::http1::handshake(tcp)
1687 .await
1688 .context("failed http handshake")?;
1689 Ok((send, tokio::task::spawn(conn)))
1690 }
1691 }
1692
1693 // Don't leave child processes running by accident so kill the child process

Callers 4

send_requestMethod · 0.80
cli_serve_hello_worldFunction · 0.80
cli_serve_sleepFunction · 0.80

Calls 5

connectFunction · 0.85
OkFunction · 0.85
spawnFunction · 0.85
newFunction · 0.50
contextMethod · 0.45

Tested by

no test coverage detected