[][src]Enum http_sig::PseudoHeader

#[non_exhaustive]pub enum PseudoHeader {
    RequestTarget,
    Created,
    Expires,
}

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)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

Methods

impl PseudoHeader[src]

pub fn as_str(&self) -> &str[src]

Returns the string representation of the pseudo-header.

Trait Implementations

impl Clone for PseudoHeader[src]

impl Copy for PseudoHeader[src]

impl Debug for PseudoHeader[src]

impl Eq for PseudoHeader[src]

impl From<PseudoHeader> for Header[src]

impl FromStr for PseudoHeader[src]

type Err = ()

The associated error which can be returned from parsing.

impl Ord for PseudoHeader[src]

impl PartialEq<PseudoHeader> for PseudoHeader[src]

impl PartialOrd<PseudoHeader> for PseudoHeader[src]

impl StructuralEq for PseudoHeader[src]

impl StructuralPartialEq for PseudoHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.