Generates a service URL with the given `path`.
(&self, path: &str)
| 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 { |
no outgoing calls
no test coverage detected