pub struct ClientBuilder { /* private fields */ }Expand description
Builder struct for an ACME HTTP client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_nonce_url(self, url: Url) -> Self
pub fn with_nonce_url(self, url: Url) -> Self
Set the URL to use to fetch a new nonce.
This is used to bootstrap the nonce at the start of an interaction
with an ACME provider, and to acquire a new nonce if an old one
ends up invalidated. Both of these actions happen transparently
when using the Client::execute method, to ensure that the JWT always
contains a valid nonce.
Sourcepub fn add_root_certificate(self, cert: Certificate) -> Self
pub fn add_root_certificate(self, cert: Certificate) -> Self
Add a custom root certificate to the underlying reqwest::Client.
This is useful if you are using a self-signed certificate from your ACME provider for testing, e.g. when using Pebble.
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Set a timeout on the underlying reqwest::Client.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Set a connect timeout on the underlying reqwest::Client.
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more