Vapor Documentation Beta

Structure HTTPHeaders.​Name

public struct Name: Codable, Hashable, Equatable, CustomStringConvertible

Type used for the name of a HTTP header in the HTTPHeaders storage.

%3 HTTPHeaders.Name HTTPHeaders.Name CustomStringConvertible CustomStringConvertible HTTPHeaders.Name->CustomStringConvertible Hashable Hashable HTTPHeaders.Name->Hashable Codable Codable HTTPHeaders.Name->Codable Equatable Equatable HTTPHeaders.Name->Equatable

Conforms To

Codable
CustomStringConvertible
Equatable
Hashable

Initializers

init(_:​)

public init(_ name: String)

Create a HTTP header name with the provided String.

init(string​Literal:​)

public init(stringLiteral: String)

ExpressibleByStringLiteral conformance.

Properties

description

var description: String

See CustomStringConvertible.description

aIM

let aIM

A-IM header.

accept

let accept

Accept header.

accept​Additions

let acceptAdditions

Accept-Additions header.

accept​Charset

let acceptCharset

Accept-Charset header.

accept​Datetime

let acceptDatetime

Accept-Datetime header.

accept​Encoding

let acceptEncoding

Accept-Encoding header.

accept​Features

let acceptFeatures

Accept-Features header.

accept​Language

let acceptLanguage

Accept-Language header.

accept​Patch

let acceptPatch

Accept-Patch header.

accept​Post

let acceptPost

Accept-Post header.

accept​Ranges

let acceptRanges

Accept-Ranges header.

age

let age

Accept-Age header.

allow

let allow

Accept-Allow header.

alpn

let alpn

ALPN header.

alt​Svc

let altSvc

Alt-Svc header.

alt​Used

let altUsed

Alt-Used header.

alternates

let alternates

Alternates header.

apply​ToRedirect​Ref

let applyToRedirectRef

Apply-To-Redirect-Ref header.

authentication​Control

let authenticationControl

Authentication-Control header.

authentication​Info

let authenticationInfo

Authentication-Info header.

authorization

let authorization

Authorization header.

cExt

let cExt

C-Ext header.

cMan

let cMan

C-Man header.

cOpt

let cOpt

C-Opt header.

cPEP

let cPEP

C-PEP header.

cPEPInfo

let cPEPInfo

C-PEP-Info header.

cache​Control

let cacheControl

Cache-Control header.

cal​DAVTimezones

let calDAVTimezones

CalDav-Timezones header.

close

let close

Close header.

connection

let connection

Connection header.

content​Base

let contentBase

Content-Base header.

content​Disposition

let contentDisposition

Content-Disposition header.

content​Encoding

let contentEncoding

Content-Encoding header.

content​ID

let contentID

Content-ID header.

content​Language

let contentLanguage

Content-Language header.

content​Length

let contentLength

Content-Length header.

content​Location

let contentLocation

Content-Location header.

content​MD5

let contentMD5

Content-MD5 header.

content​Range

let contentRange

Content-Range header.

content​Script​Type

let contentScriptType

Content-Script-Type header.

content​Security​Policy

let contentSecurityPolicy

Content-Security-Policy

content​Style​Type

let contentStyleType

Content-Style-Type header.

content​Type

let contentType

Content-Type header.

content​Version

let contentVersion

Content-Version header.

cookie

let cookie

Cookie header.

cookie2

let cookie2

Cookie2 header.

dasl

let dasl

DASL header.

dav

let dav

DASV header.

date

let date

Date header.

default​Style

let defaultStyle

Default-Style header.

delta​Base

let deltaBase

Delta-Base header.

depth

let depth

Depth header.

derived​From

let derivedFrom

Derived-From header.

destination

let destination

Destination header.

differential​ID

let differentialID

Differential-ID header.

digest

let digest

Digest header.

eTag

let eTag

ETag header.

expect

let expect

Expect header.

expires

let expires

Expires header.

ext

let ext

Ext header.

forwarded

let forwarded

Forwarded header.

from

let from

From header.

get​Profile

let getProfile

GetProfile header.

hobareg

let hobareg

Hobareg header.

host

let host

Host header.

http2Settings

let http2Settings

HTTP2-Settings header.

im

let im

IM header.

`if`

let `if`

If header.

if​Match

let ifMatch

If-Match header.

if​Modified​Since

let ifModifiedSince

If-Modified-Since header.

if​None​Match

let ifNoneMatch

If-None-Match header.

if​Range

let ifRange

If-Range header.

if​Schedule​Tag​Match

let ifScheduleTagMatch

If-Schedule-Tag-Match header.

if​Unmodified​Since

let ifUnmodifiedSince

If-Unmodified-Since header.

keep​Alive

let keepAlive

Keep-Alive header.

label

let label

Label header.

last​Modified

let lastModified

Last-Modified header.

location

let location

Location header.

lock​Token

let lockToken

Lock-Token header.

man

let man

Man header.

max​Forwards

let maxForwards

Max-Forwards header.

memento​Datetime

let mementoDatetime

Memento-Datetime header.

meter

let meter

Meter header.

mime​Version

let mimeVersion

MIME-Version header.

negotiate

let negotiate

Negotiate header.

opt

let opt

Opt header.

optional​WWWAuthenticate

let optionalWWWAuthenticate

Optional-WWW-Authenticate header.

ordering​Type

let orderingType

Ordering-Type header.

origin

let origin

Origin header.

overwrite

let overwrite

Overwrite header.

p3p

let p3p

P3P header.

pep

let pep

PEP header.

pics​Label

let picsLabel

PICS-Label header.

pep​Info

let pepInfo

Pep-Info header.

position

let position

Position header.

pragma

let pragma

Pragma header.

prefer

let prefer

Prefer header.

preference​Applied

let preferenceApplied

Preference-Applied header.

profile​Object

let profileObject

ProfileObject header.

`protocol`

let `protocol`

Protocol header.

protocol​Info

let protocolInfo

Protocol-Info header.

protocol​Query

let protocolQuery

Protocol-Query header.

protocol​Request

let protocolRequest

Protocol-Request header.

proxy​Authenticate

let proxyAuthenticate

Proxy-Authenticate header.

proxy​Authentication​Info

let proxyAuthenticationInfo

Proxy-Authentication-Info header.

proxy​Authorization

let proxyAuthorization

Proxy-Authorization header.

proxy​Features

let proxyFeatures

Proxy-Features header.

proxy​Instruction

let proxyInstruction

Proxy-Instruction header.

`public`

let `public`

Public header.

public​Key​Pins

let publicKeyPins

Public-Key-Pins header.

public​Key​Pins​Report​Only

let publicKeyPinsReportOnly

Public-Key-Pins-Report-Only header.

range

let range

Range header.

redirect​Ref

let redirectRef

Redirect-Ref header.

referer

let referer

Referer header.

retry​After

let retryAfter

Retry-After header.

safe

let safe

Safe header.

schedule​Reply

let scheduleReply

Schedule-Reply header.

schedule​Tag

let scheduleTag

Schedule-Tag header.

sec​Web​Socket​Accept

let secWebSocketAccept

Sec-WebSocket-Accept header.

sec​Web​Socket​Extensions

let secWebSocketExtensions

Sec-WebSocket-Extensions header.

sec​Web​Socket​Key

let secWebSocketKey

Sec-WebSocket-Key header.

sec​Web​Socket​Protocol

let secWebSocketProtocol

Sec-WebSocket-Protocol header.

sec​Web​Socket​Version

let secWebSocketVersion

Sec-WebSocket-Version header.

security​Scheme

let securityScheme

Security-Scheme header.

server

let server

Server header.

set​Cookie

let setCookie

Set-Cookie header.

set​Cookie2

let setCookie2

Set-Cookie2 header.

set​Profile

let setProfile

SetProfile header.

slug

let slug

SLUG header.

soap​Action

let soapAction

SoapAction header.

status​URI

let statusURI

Status-URI header.

strict​Transport​Security

let strictTransportSecurity

Strict-Transport-Security header.

surrogate​Capability

let surrogateCapability

Surrogate-Capability header.

surrogate​Control

let surrogateControl

Surrogate-Control header.

tcn

let tcn

TCN header.

te

let te

TE header.

timeout

let timeout

Timeout header.

topic

let topic

Topic header.

trailer

let trailer

Trailer header.

transfer​Encoding

let transferEncoding

Transfer-Encoding header.

ttl

let ttl

TTL header.

urgency

let urgency

Urgency header.

uri

let uri

URI header.

upgrade

let upgrade

Upgrade header.

user​Agent

let userAgent

User-Agent header.

variant​Vary

let variantVary

Variant-Vary header.

vary

let vary

Vary header.

via

let via

Via header.

www​Authenticate

let wwwAuthenticate

WWW-Authenticate header.

want​Digest

let wantDigest

Want-Digest header.

warning

let warning

Warning header.

xContent​Type​Options

let xContentTypeOptions

X-Content-Type-Options

xFrame​Options

let xFrameOptions

X-Frame-Options header.

xss​Protection

let xssProtection

X-XSS-Protection header

access​Control

let accessControl

Access-Control header.

access​Control​Allow​Credentials

let accessControlAllowCredentials

Access-Control-Allow-Credentials header.

access​Control​Allow​Headers

let accessControlAllowHeaders

Access-Control-Allow-Headers header.

access​Control​Allow​Methods

let accessControlAllowMethods

Access-Control-Allow-Methods header.

access​Control​Allow​Origin

let accessControlAllowOrigin

Access-Control-Allow-Origin header.

access​Control​Expose

let accessControlExpose

Access-Control-Expose-Headers header.

access​Control​Max​Age

let accessControlMaxAge

Access-Control-Max-Age header.

access​Control​Request​Method

let accessControlRequestMethod

Access-Control-Request-Method header.

access​Control​Request​Headers

let accessControlRequestHeaders

Access-Control-Request-Headers header.

compliance

let compliance

Compliance header.

content​Transfer​Encoding

let contentTransferEncoding

Content-Transfer-Encoding header.

cost

let cost

Cost header.

ediint​Features

let ediintFeatures

EDIINT-Features header.

message​ID

let messageID

Message-ID header.

method​Check

let methodCheck

Method-Check header.

method​Check​Expires

let methodCheckExpires

Method-Check-Expires header.

non​Compliance

let nonCompliance

Non-Compliance header.

optional

let optional

Optional header.

referer​Root

let refererRoot

Referer-Root header.

resolution​Hint

let resolutionHint

Resolution-Hint header.

resolver​Location

let resolverLocation

Resolver-Location header.

sub​OK

let subOK

SubOK header.

subst

let subst

Subst header.

title

let title

Title header.

ua​Color

let uaColor

UA-Color header.

ua​Media

let uaMedia

UA-Media header.

ua​Pixels

let uaPixels

UA-Pixels header.

ua​Resolution

let uaResolution

UA-Resolution header.

ua​Windowpixels

let uaWindowpixels

UA-Windowpixels header.

version

let version

Version header.

xDevice​Accept

let xDeviceAccept

X-Device-Accept header.

xDevice​Accept​Charset

let xDeviceAcceptCharset

X-Device-Accept-Charset header.

xDevice​Accept​Encoding

let xDeviceAcceptEncoding

X-Device-Accept-Encoding header.

xDevice​Accept​Language

let xDeviceAcceptLanguage

X-Device-Accept-Language header.

xDevice​User​Agent

let xDeviceUserAgent

X-Device-User-Agent header.

xRequested​With

let xRequestedWith

X-Requested-With header.

xForwarded​For

let xForwardedFor

X-Forwarded-For header.

xForwarded​Host

let xForwardedHost

X-Forwarded-Host header.

xForwarded​Proto

let xForwardedProto

X-Forwarded-Proto header.

Methods

hash(into:​)

public func hash(into hasher: inout Hasher)

See Hashable