[][src]Enum hpack_codec::table::StaticEntry

pub enum StaticEntry {
    Authority,
    Method,
    MethodGet,
    MethodPost,
    Path,
    PathRoot,
    PathIndexHtml,
    Scheme,
    SchemeHttp,
    SchemeHttps,
    Status,
    Status200,
    Status204,
    Status206,
    Status304,
    Status400,
    Status404,
    Status500,
    AcceptCharset,
    AcceptEncoding,
    AcceptEncodingGzipDeflate,
    AcceptLanguage,
    AcceptRanges,
    Accept,
    AccessControlAllowOrigin,
    Age,
    Allow,
    Authorization,
    CacheControl,
    ContentDisposition,
    ContentEncoding,
    ContentLanguage,
    ContentLength,
    ContentLocation,
    ContentRange,
    ContentType,
    Cookie,
    Date,
    Etag,
    Expect,
    Expires,
    From,
    Host,
    IfMatch,
    IfModifiedSince,
    IfNoneMatch,
    IfRange,
    IfUnmodifiedSince,
    LastModified,
    Link,
    Location,
    MaxForwards,
    ProxyAuthenticate,
    ProxyAuthorization,
    Range,
    Referer,
    Refresh,
    RetryAfter,
    Server,
    SetCookie,
    StrictTransportSecurity,
    TransferEncoding,
    UserAgent,
    Vary,
    Via,
    WwwAuthenticate,
}

A list specifying the entries of the static table.

See: [Appendix A. Static Table Definition)(https://tools.ietf.org/html/rfc7541#appendix-A)

Variants

Authority
Method

This is an alias of MethodGet.

MethodGet
MethodPost
Path

This is an alias of PathRoot.

PathRoot
PathIndexHtml
Scheme

This is an alias of SchemeHttp.

SchemeHttp
SchemeHttps
Status

This is an alias of Status200.

Status200
Status204
Status206
Status304
Status400
Status404
Status500
AcceptCharset
AcceptEncoding

This is an alias of AcceptEncodingGzipDeflate.

AcceptEncodingGzipDeflate
AcceptLanguage
AcceptRanges
Accept
AccessControlAllowOrigin
Age
Allow
Authorization
CacheControl
ContentDisposition
ContentEncoding
ContentLanguage
ContentLength
ContentLocation
ContentRange
ContentType
Cookie
Date
Etag
Expect
Expires
From
Host
IfMatch
IfModifiedSince
IfNoneMatch
IfRange
IfUnmodifiedSince
LastModified
Location
MaxForwards
ProxyAuthenticate
ProxyAuthorization
Range
Referer
Refresh
RetryAfter
Server
SetCookie
StrictTransportSecurity
TransferEncoding
UserAgent
Vary
Via
WwwAuthenticate

Methods

impl StaticEntry[src]

pub fn entries_count() -> usize[src]

Returns the entries count of the static table.

Examples

use hpack_codec::table::StaticEntry;

assert_eq!(StaticEntry::entries_count(), 61);

pub fn from_index(index: Index) -> Option<Self>[src]

Makes a new StaticEntry instance associated with the specified index.

If the value of index is greater than StaticEntry::entries_count(), this function will return None.

Trait Implementations

impl<'a> From<StaticEntry> for RawHeaderField<'a>[src]

impl From<StaticEntry> for Index[src]

impl From<StaticEntry> for HeaderField<'static>[src]

impl Clone for StaticEntry[src]

impl Copy for StaticEntry[src]

impl Debug for StaticEntry[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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