Skip to content

Commit

Permalink
Allow providing a custom reqwest client
Browse files Browse the repository at this point in the history
This allows e.g. custom certificate handling.
  • Loading branch information
bennettpiatershs committed Mar 21, 2024
1 parent 7b09d8a commit 8c3ef40
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 8c3ef40

Please sign in to comment.