diff --git a/src/api/tokio.rs b/src/api/tokio.rs index b616fa0..5974b5e 100644 --- a/src/api/tokio.rs +++ b/src/api/tokio.rs @@ -143,6 +143,12 @@ impl ApiBuilder { self } + /// Sets the Hub's HTTP URL + pub fn endpoint(mut self, endpoint: String) -> Self { + self.endpoint = endpoint; + self + } + fn build_headers(&self) -> Result { let mut headers = HeaderMap::new(); let user_agent = format!("unkown/None; {NAME}/{VERSION}; rust/unknown");