Enum http_sig::PseudoHeader
source ·
[−]#[non_exhaustive]
pub enum PseudoHeader {
RequestTarget,
Created,
Expires,
}
Expand description
Pseudo-headers are used to incorporate additional information into a HTTP signature for which there is no corresponding HTTP header.
They are described as “special headers” in the draft specification: https://tools.ietf.org/id/draft-cavage-http-signatures-12.html#canonicalization
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
RequestTarget
The (request-target)
pseudo-header is constructed by joining the lower-cased
request method (get
, post
, etc.) and the request path (/some/page?foo=1
)
with a single space character.
For example:
get /index.html
Created
Passed as part of the auth header
Expires
Passed as part of the auth header
Implementations
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PseudoHeader
impl Send for PseudoHeader
impl Sync for PseudoHeader
impl Unpin for PseudoHeader
impl UnwindSafe for PseudoHeader
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more