MCPcopy Create free account
hub / github.com/bajrangCoder/setu / new

Method new

src/http/client.rs:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34impl HttpClient {
35 pub fn new() -> Result<Self> {
36 let client = Client::builder().user_agent("Setu/0.1.0").build()?;
37
38 Ok(Self {
39 client,
40 runtime: shared_tokio_runtime(),
41 })
42 }
43
44 /// Spawn an HTTP request on the Tokio runtime and return a receiver for the result.
45 /// This allows GPUI's async executor to await the result without being in a Tokio context.

Callers 1

create_main_windowMethod · 0.45

Calls 1

shared_tokio_runtimeFunction · 0.85

Tested by

no test coverage detected