We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BlockingClient
1 parent 6440e1d commit bc3d431Copy full SHA for bc3d431
src/blocking.rs
@@ -51,7 +51,13 @@ impl BlockingClient {
51
}
52
53
54
- fn get_request(&self, path: &str) -> Result<Request, Error> {
+ /// Get the underlying base URL.
55
+ pub fn url(&self) -> &str {
56
+ &self.url
57
+ }
58
+
59
+ /// Perform a raw HTTP GET request with the given URI `path`.
60
+ pub fn get_request(&self, path: &str) -> Result<Request, Error> {
61
let mut request = minreq::get(format!("{}{}", self.url, path));
62
63
if let Some(proxy) = &self.proxy {
0 commit comments