pub enum Method<T> {
Get,
Post(T),
}Expand description
The HTTP request method in use with this ACME request.
All ACME requests use POST under the hood, since they all contain a JWS-via-JOSE token to validate that the request is coming from the account holder. However, sometimes the ACME server wants the request to have GET semantics. In those cases, the payload will be the empty string.
Variants§
Get
GET-as-POST request with an empty string payload
Post(T)
POST request with a specific JSON payload.
Trait Implementations§
impl<T: Copy> Copy for Method<T>
Auto Trait Implementations§
impl<T> Freeze for Method<T>where
T: Freeze,
impl<T> RefUnwindSafe for Method<T>where
T: RefUnwindSafe,
impl<T> Send for Method<T>where
T: Send,
impl<T> Sync for Method<T>where
T: Sync,
impl<T> Unpin for Method<T>where
T: Unpin,
impl<T> UnsafeUnpin for Method<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Method<T>where
T: UnwindSafe,
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