pub struct Http01Handler { /* private fields */ }Expand description
HTTP-01 challenge handler
Handles HTTP-01 challenges by serving challenge responses on:
http://<domain>/.well-known/acme-challenge/<token>
Implementations§
Source§impl Http01Handler
impl Http01Handler
Sourcepub async fn add_challenge(&self, token: String, key_authorization: String)
pub async fn add_challenge(&self, token: String, key_authorization: String)
Add a challenge response
Sourcepub async fn get_challenge(&self, token: &str) -> Option<String>
pub async fn get_challenge(&self, token: &str) -> Option<String>
Get challenge response for a token
Sourcepub async fn remove_challenge(&self, token: &str)
pub async fn remove_challenge(&self, token: &str)
Remove a challenge
Sourcepub async fn handle_request(&self, token: &str) -> Result<String>
pub async fn handle_request(&self, token: &str) -> Result<String>
Handle HTTP-01 challenge request
This should be integrated with the HTTP server to serve challenges at: GET /.well-known/acme-challenge/{token}
Sourcepub fn well_known_path(token: &str) -> String
pub fn well_known_path(token: &str) -> String
Get the well-known path for a token
Trait Implementations§
Source§impl Clone for Http01Handler
impl Clone for Http01Handler
Source§fn clone(&self) -> Http01Handler
fn clone(&self) -> Http01Handler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Http01Handler
impl !RefUnwindSafe for Http01Handler
impl Send for Http01Handler
impl Sync for Http01Handler
impl Unpin for Http01Handler
impl UnsafeUnpin for Http01Handler
impl !UnwindSafe for Http01Handler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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