Skip to content

Commit 5553784

Browse files
committed
Add BlockingClient::{url, agent}
1 parent 80f648b commit 5553784

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/blocking.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,16 @@ impl BlockingClient {
357357

358358
Ok(self.agent.get(&url).call()?.into_json()?)
359359
}
360+
361+
/// Get the underlying base URL.
362+
pub fn url(&self) -> &str {
363+
&self.url
364+
}
365+
366+
/// Get the underlying [`Agent`].
367+
pub fn agent(&self) -> &Agent {
368+
&self.agent
369+
}
360370
}
361371

362372
fn is_status_not_found(status: u16) -> bool {

0 commit comments

Comments
 (0)