MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / build_global_request

Method build_global_request

src/cloud-api/src/client.rs:52–64  ·  view source on GitHub ↗

Builds a request towards the `Client`'s endpoint

(
        &self,
        method: Method,
        path: P,
        query: Option<&[(&str, &str)]>,
    )

Source from the content-addressed store, hash-verified

50impl Client {
51 /// Builds a request towards the `Client`'s endpoint
52 async fn build_global_request<P>(
53 &self,
54 method: Method,
55 path: P,
56 query: Option<&[(&str, &str)]>,
57 ) -> Result<RequestBuilder, Error>
58 where
59 P: IntoIterator,
60 P::Item: AsRef<str>,
61 {
62 self.build_request(method, path, query, self.endpoint.clone(), None)
63 .await
64 }
65
66 /// Builds a request towards the `Client`'s endpoint
67 /// The function requires a [CloudProvider] as parameter

Callers 1

list_cloud_regionsMethod · 0.80

Calls 2

build_requestMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected