MCPcopy Index your code
hub / github.com/endbasic/endbasic / make_url

Method make_url

client/src/cloud.rs:123–129  ·  view source on GitHub ↗

Generates a service URL with the given `path`.

(&self, path: &str)

Source from the content-addressed store, hash-verified

121
122 /// Generates a service URL with the given `path`.
123 fn make_url(&self, path: &str) -> Url {
124 assert!(path.starts_with("api/"));
125 let mut url = self.api_address.clone();
126 assert!(url.path().is_empty() || url.path() == "/");
127 url.set_path(path);
128 url
129 }
130
131 /// Returns the default headers to add to every request.
132 fn default_headers(&self) -> HeaderMap {

Callers 9

signupMethod · 0.80
loginMethod · 0.80
logoutMethod · 0.80
get_filesMethod · 0.80
get_fileMethod · 0.80
get_file_aclsMethod · 0.80
patch_file_contentMethod · 0.80
patch_file_aclsMethod · 0.80
delete_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected