Skip to content

Commit

Permalink
Merge pull request #3 from clawoflight/custom-reqwest-client
Browse files Browse the repository at this point in the history
Allow providing a custom reqwest client
  • Loading branch information
msuchane authored Mar 23, 2024
2 parents b461248 + 8c3ef40 commit 65d6394
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ impl JiraInstance {
self
}

/// Set the http client of this `JiraInstance`.
#[must_use]
pub fn with_client(mut self, client: reqwest::Client) -> Self {
self.client = client;
self
}

/// Set the pagination method of this `JiraInstance`.
#[must_use]
pub const fn paginate(mut self, pagination: Pagination) -> Self {
Expand Down

0 comments on commit 65d6394

Please sign in to comment.