MCPcopy Create free account
hub / github.com/apache/paimon-rust / request_url

Method request_url

crates/paimon/src/api/rest_client.rs:233–241  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

231 }
232
233 fn request_url(&self, path: &str) -> String {
234 if path.is_empty() || path == "/" {
235 self.base_url.clone()
236 } else if path.starts_with('/') {
237 format!("{}{}", self.base_url, path)
238 } else {
239 format!("{}/{}", self.base_url, path)
240 }
241 }
242
243 async fn parse_response<T: DeserializeOwned>(&self, resp: reqwest::Response) -> Result<T> {
244 let status = resp.status();

Callers 3

getMethod · 0.80
postMethod · 0.80
deleteMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected