Skip to content

Commit 65d6394

Browse files
author
Marek Suchánek
authored
Merge pull request #3 from clawoflight/custom-reqwest-client
Allow providing a custom reqwest client
2 parents b461248 + 8c3ef40 commit 65d6394

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/access.rs

+7
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ impl JiraInstance {
109109
self
110110
}
111111

112+
/// Set the http client of this `JiraInstance`.
113+
#[must_use]
114+
pub fn with_client(mut self, client: reqwest::Client) -> Self {
115+
self.client = client;
116+
self
117+
}
118+
112119
/// Set the pagination method of this `JiraInstance`.
113120
#[must_use]
114121
pub const fn paginate(mut self, pagination: Pagination) -> Self {

0 commit comments

Comments
 (0)