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

Method send_request

tests/all/cli_tests.rs:1647–1656  ·  view source on GitHub ↗

Send a request to this server and wait for the response.

(&self, req: http::Request<String>)

Source from the content-addressed store, hash-verified

1645
1646 /// Send a request to this server and wait for the response.
1647 async fn send_request(&self, req: http::Request<String>) -> Result<http::Response<String>> {
1648 let (mut send, conn_task) = self.start_requests().await?;
1649
1650 let response = Self::send_request_with(&mut send, req).await?;
1651 drop(send);
1652
1653 conn_task.await??;
1654
1655 Ok(response)
1656 }
1657
1658 async fn send_request_with(
1659 send: &mut hyper::client::conn::http1::SendRequest<String>,

Calls 3

OkFunction · 0.85
start_requestsMethod · 0.80
dropFunction · 0.50

Tested by

no test coverage detected