Name
public struct Name: Hashable, ExpressibleByStringLiteral, CustomStringConvertible
Type used for the name of a HTTP header in the HTTPHeaders storage.
-
Declaration
Swift
public let hashValue: Int -
Create a HTTP header name with the provided String.
Declaration
Swift
public init(_ name: String) -
Declaration
Swift
public init(stringLiteral: String)Parameters
value -
Declaration
Swift
public init(unicodeScalarLiteral: String)Parameters
value -
Declaration
Swift
public init(extendedGraphemeClusterLiteral: String)Parameters
value -
A-IM header.
Declaration
Swift
public static let aIM = Name("A-IM") -
Accept header.
Declaration
Swift
public static let accept = Name("Accept") -
Accept-Additions header.
Declaration
Swift
public static let acceptAdditions = Name("Accept-Additions") -
Accept-Charset header.
Declaration
Swift
public static let acceptCharset = Name("Accept-Charset") -
Accept-Datetime header.
Declaration
Swift
public static let acceptDatetime = Name("Accept-Datetime") -
Accept-Encoding header.
Declaration
Swift
public static let acceptEncoding = Name("Accept-Encoding") -
Accept-Features header.
Declaration
Swift
public static let acceptFeatures = Name("Accept-Features") -
Accept-Language header.
Declaration
Swift
public static let acceptLanguage = Name("Accept-Language") -
Accept-Patch header.
Declaration
Swift
public static let acceptPatch = Name("Accept-Patch") -
Accept-Post header.
Declaration
Swift
public static let acceptPost = Name("Accept-Post") -
Accept-Ranges header.
Declaration
Swift
public static let acceptRanges = Name("Accept-Ranges") -
Accept-Age header.
Declaration
Swift
public static let age = Name("Age") -
Accept-Allow header.
Declaration
Swift
public static let allow = Name("Allow") -
ALPN header.
Declaration
Swift
public static let alpn = Name("ALPN") -
Alt-Svc header.
Declaration
Swift
public static let altSvc = Name("Alt-Svc") -
Alt-Used header.
Declaration
Swift
public static let altUsed = Name("Alt-Used") -
Alternatives header.
Declaration
Swift
public static let alternates = Name("Alternates") -
Apply-To-Redirect-Ref header.
Declaration
Swift
public static let applyToRedirectRef = Name("Apply-To-Redirect-Ref") -
Authentication-Control header.
Declaration
Swift
public static let authenticationControl = Name("Authentication-Control") -
Authentication-Info header.
Declaration
Swift
public static let authenticationInfo = Name("Authentication-Info") -
Authorization header.
Declaration
Swift
public static let authorization = Name("Authorization") -
C-Ext header.
Declaration
Swift
public static let cExt = Name("C-Ext") -
C-Man header.
Declaration
Swift
public static let cMan = Name("C-Man") -
C-Opt header.
Declaration
Swift
public static let cOpt = Name("C-Opt") -
C-PEP header.
Declaration
Swift
public static let cPEP = Name("C-PEP") -
C-PEP-Indo header.
Declaration
Swift
public static let cPEPInfo = Name("C-PEP-Info") -
Cache-Control header.
Declaration
Swift
public static let cacheControl = Name("Cache-Control") -
CalDav-Timezones header.
Declaration
Swift
public static let calDAVTimezones = Name("CalDAV-Timezones") -
Close header.
Declaration
Swift
public static let close = Name("Close") -
Connection header.
Declaration
Swift
public static let connection = Name("Connection") -
Content-Base.
Declaration
Swift
public static let contentBase = Name("Content-Base") -
Content-Disposition header.
Declaration
Swift
public static let contentDisposition = Name("Content-Disposition") -
Content-Encoding header.
Declaration
Swift
public static let contentEncoding = Name("Content-Encoding") -
Content-ID header.
Declaration
Swift
public static let contentID = Name("Content-ID") -
Content-Language header.
Declaration
Swift
public static let contentLanguage = Name("Content-Language") -
Content-Length header.
Declaration
Swift
public static let contentLength = Name("Content-Length") -
Content-Location header.
Declaration
Swift
public static let contentLocation = Name("Content-Location") -
Content-MD5 header.
Declaration
Swift
public static let contentMD5 = Name("Content-MD5") -
Content-Range header.
Declaration
Swift
public static let contentRange = Name("Content-Range") -
Content-Script-Type header.
Declaration
Swift
public static let contentScriptType = Name("Content-Script-Type") -
Content-Style-Type header.
Declaration
Swift
public static let contentStyleType = Name("Content-Style-Type") -
Content-Type header.
Declaration
Swift
public static let contentType = Name("Content-Type") -
Content-Version header.
Declaration
Swift
public static let contentVersion = Name("Content-Version") -
Content-Cookie header.
Declaration
Swift
public static let cookie = Name("Cookie") -
Content-Cookie2 header.
Declaration
Swift
public static let cookie2 = Name("Cookie2") -
DASL header.
Declaration
Swift
public static let dasl = Name("DASL") -
DASV header.
Declaration
Swift
public static let dav = Name("DAV") -
Date header.
Declaration
Swift
public static let date = Name("Date") -
Default-Style header.
Declaration
Swift
public static let defaultStyle = Name("Default-Style") -
Delta-Base header.
Declaration
Swift
public static let deltaBase = Name("Delta-Base") -
Depth header.
Declaration
Swift
public static let depth = Name("Depth") -
Derived-From header.
Declaration
Swift
public static let derivedFrom = Name("Derived-From") -
Destination header.
Declaration
Swift
public static let destination = Name("Destination") -
Differential-ID header.
Declaration
Swift
public static let differentialID = Name("Differential-ID") -
Digest header.
Declaration
Swift
public static let digest = Name("Digest") -
ETag header.
Declaration
Swift
public static let eTag = Name("ETag") -
Expect header.
Declaration
Swift
public static let expect = Name("Expect") -
Expires header.
Declaration
Swift
public static let expires = Name("Expires") -
Ext header.
Declaration
Swift
public static let ext = Name("Ext") -
Forwarded header.
Declaration
Swift
public static let forwarded = Name("Forwarded") -
From header.
Declaration
Swift
public static let from = Name("From") -
GetProfile header.
Declaration
Swift
public static let getProfile = Name("GetProfile") -
Hobareg header.
Declaration
Swift
public static let hobareg = Name("Hobareg") -
Host header.
Declaration
Swift
public static let host = Name("Host") -
HTTP2-Settings header.
Declaration
Swift
public static let http2Settings = Name("HTTP2-Settings") -
IM header.
Declaration
Swift
public static let im = Name("IM") -
If header.
Declaration
Swift
public static let `if` = Name("If") -
If-Match header.
Declaration
Swift
public static let ifMatch = Name("If-Match") -
If-Modified-Since header.
Declaration
Swift
public static let ifModifiedSince = Name("If-Modified-Since") -
If-None-Match header.
Declaration
Swift
public static let ifNoneMatch = Name("If-None-Match") -
If-Range header.
Declaration
Swift
public static let ifRange = Name("If-Range") -
If-Schedule-Tag-Match header.
Declaration
Swift
public static let ifScheduleTagMatch = Name("If-Schedule-Tag-Match") -
If-Unmodified-Since header.
Declaration
Swift
public static let ifUnmodifiedSince = Name("If-Unmodified-Since") -
Keep-Alive header.
Declaration
Swift
public static let keepAlive = Name("Keep-Alive") -
Label header.
Declaration
Swift
public static let label = Name("Label") -
Last-Modified header.
Declaration
Swift
public static let lastModified = Name("Last-Modified") -
Link header.
Declaration
Swift
public static let link = Name("Link") -
Location header.
Declaration
Swift
public static let location = Name("Location") -
Lock-Token header.
Declaration
Swift
public static let lockToken = Name("Lock-Token") -
Man header.
Declaration
Swift
public static let man = Name("Man") -
Max-Forwards header.
Declaration
Swift
public static let maxForwards = Name("Max-Forwards") -
Memento-Date header.
Declaration
Swift
public static let mementoDatetime = Name("Memento-Datetime") -
Meter header.
Declaration
Swift
public static let meter = Name("Meter") -
MIME-Version header.
Declaration
Swift
public static let mimeVersion = Name("MIME-Version") -
Negotiate header.
Declaration
Swift
public static let negotiate = Name("Negotiate") -
Opt header.
Declaration
Swift
public static let opt = Name("Opt") -
Optional-WWW-Authenticate header.
Declaration
Swift
public static let optionalWWWAuthenticate = Name("Optional-WWW-Authenticate") -
Ordering-Type header.
Declaration
Swift
public static let orderingType = Name("Ordering-Type") -
Origin header.
Declaration
Swift
public static let origin = Name("Origin") -
Overwrite header.
Declaration
Swift
public static let overwrite = Name("Overwrite") -
P3P header.
Declaration
Swift
public static let p3p = Name("P3P") -
PEP header.
Declaration
Swift
public static let pep = Name("PEP") -
PICS-Label header.
Declaration
Swift
public static let picsLabel = Name("PICS-Label") -
Pep-Info header.
Declaration
Swift
public static let pepInfo = Name("Pep-Info") -
Position header.
Declaration
Swift
public static let position = Name("Position") -
Pragma header.
Declaration
Swift
public static let pragma = Name("Pragma") -
Prefer header.
Declaration
Swift
public static let prefer = Name("Prefer") -
Preference-Applied header.
Declaration
Swift
public static let preferenceApplied = Name("Preference-Applied") -
ProfileObject header.
Declaration
Swift
public static let profileObject = Name("ProfileObject") -
Protocol header.
Declaration
Swift
public static let `protocol` = Name("Protocol") -
Protocol-Info header.
Declaration
Swift
public static let protocolInfo = Name("Protocol-Info") -
Protocol-Query header.
Declaration
Swift
public static let protocolQuery = Name("Protocol-Query") -
Protocol-Request header.
Declaration
Swift
public static let protocolRequest = Name("Protocol-Request") -
Proxy-Authenticate header.
Declaration
Swift
public static let proxyAuthenticate = Name("Proxy-Authenticate") -
Proxy-Authentication-Info header.
Declaration
Swift
public static let proxyAuthenticationInfo = Name("Proxy-Authentication-Info") -
Proxy-Authorization header.
Declaration
Swift
public static let proxyAuthorization = Name("Proxy-Authorization") -
Proxy-Features header.
Declaration
Swift
public static let proxyFeatures = Name("Proxy-Features") -
Proxy-Instruction header.
Declaration
Swift
public static let proxyInstruction = Name("Proxy-Instruction") -
Public header.
Declaration
Swift
public static let `public` = Name("Public") -
Public-Key-Pins header.
Declaration
Swift
public static let publicKeyPins = Name("Public-Key-Pins") -
Public-Key-Pins-Report-Only header.
Declaration
Swift
public static let publicKeyPinsReportOnly = Name("Public-Key-Pins-Report-Only") -
Range header.
Declaration
Swift
public static let range = Name("Range") -
Redirect-Ref header.
Declaration
Swift
public static let redirectRef = Name("Redirect-Ref") -
Referer header.
Declaration
Swift
public static let referer = Name("Referer") -
Retry-After header.
Declaration
Swift
public static let retryAfter = Name("Retry-After") -
Safe header.
Declaration
Swift
public static let safe = Name("Safe") -
Schedule-Reply header.
Declaration
Swift
public static let scheduleReply = Name("Schedule-Reply") -
Schedule-Tag header.
Declaration
Swift
public static let scheduleTag = Name("Schedule-Tag") -
Sec-WebSocket-Accept header.
Declaration
Swift
public static let secWebSocketAccept = Name("Sec-WebSocket-Accept") -
Sec-WebSocket-Extensions header.
Declaration
Swift
public static let secWebSocketExtensions = Name("Sec-WebSocket-Extensions") -
Sec-WebSocket-Key header.
Declaration
Swift
public static let secWebSocketKey = Name("Sec-WebSocket-Key") -
Sec-WebSocket-Protocol header.
Declaration
Swift
public static let secWebSocketProtocol = Name("Sec-WebSocket-Protocol") -
Sec-WebSocket-Version header.
Declaration
Swift
public static let secWebSocketVersion = Name("Sec-WebSocket-Version") -
Security-Scheme header.
Declaration
Swift
public static let securityScheme = Name("Security-Scheme") -
Server header.
Declaration
Swift
public static let server = Name("Server") -
Set-Cookie header.
Declaration
Swift
public static let setCookie = Name("Set-Cookie") -
Set-Cookie2 header.
Declaration
Swift
public static let setCookie2 = Name("Set-Cookie2") -
SetProfile header.
Declaration
Swift
public static let setProfile = Name("SetProfile") -
SLUG header.
Declaration
Swift
public static let slug = Name("SLUG") -
SoapAction header.
Declaration
Swift
public static let soapAction = Name("SoapAction") -
Status-URI header.
Declaration
Swift
public static let statusURI = Name("Status-URI") -
Strict-Transport-Security header.
Declaration
Swift
public static let strictTransportSecurity = Name("Strict-Transport-Security") -
Surrogate-Capability header.
Declaration
Swift
public static let surrogateCapability = Name("Surrogate-Capability") -
Surrogate-Control header.
Declaration
Swift
public static let surrogateControl = Name("Surrogate-Control") -
TCN header.
Declaration
Swift
public static let tcn = Name("TCN") -
TE header.
Declaration
Swift
public static let te = Name("TE") -
Timeout header.
Declaration
Swift
public static let timeout = Name("Timeout") -
Topic header.
Declaration
Swift
public static let topic = Name("Topic") -
Trailer header.
Declaration
Swift
public static let trailer = Name("Trailer") -
Transfer-Encoding header.
Declaration
Swift
public static let transferEncoding = Name("Transfer-Encoding") -
TTL header.
Declaration
Swift
public static let ttl = Name("TTL") -
Urgency header.
Declaration
Swift
public static let urgency = Name("Urgency") -
URI header.
Declaration
Swift
public static let uri = Name("URI") -
Upgrade header.
Declaration
Swift
public static let upgrade = Name("Upgrade") -
User-Agent header.
Declaration
Swift
public static let userAgent = Name("User-Agent") -
Variant-Vary header.
Declaration
Swift
public static let variantVary = Name("Variant-Vary") -
Vary header.
Declaration
Swift
public static let vary = Name("Vary") -
Via header.
Declaration
Swift
public static let via = Name("Via") -
WWW-Authenticate header.
Declaration
Swift
public static let wwwAuthenticate = Name("WWW-Authenticate") -
Want-Digest header.
Declaration
Swift
public static let wantDigest = Name("Want-Digest") -
Warning header.
Declaration
Swift
public static let warning = Name("Warning") -
X-Frame-Options header.
Declaration
Swift
public static let xFrameOptions = Name("X-Frame-Options") -
Access-Control header.
Declaration
Swift
public static let accessControl = Name("Access-Control") -
Access-Control-Allow-Credentials header.
Declaration
Swift
public static let accessControlAllowCredentials = Name("Access-Control-Allow-Credentials") -
Access-Control-Allow-Headers header.
Declaration
Swift
public static let accessControlAllowHeaders = Name("Access-Control-Allow-Headers") -
Access-Control-Allow-Methods header.
Declaration
Swift
public static let accessControlAllowMethods = Name("Access-Control-Allow-Methods") -
Access-Control-Allow-Origin header.
Declaration
Swift
public static let accessControlAllowOrigin = Name("Access-Control-Allow-Origin") -
Access-Control-Max-Age header.
Declaration
Swift
public static let accessControlMaxAge = Name("Access-Control-Max-Age") -
Access-Control-Request-Method header.
Declaration
Swift
public static let accessControlRequestMethod = Name("Access-Control-Request-Method") -
Access-Control-Request-Headers header.
Declaration
Swift
public static let accessControlRequestHeaders = Name("Access-Control-Request-Headers") -
Compliance header.
Declaration
Swift
public static let compliance = Name("Compliance") -
Content-Transfer-Encoding header.
Declaration
Swift
public static let contentTransferEncoding = Name("Content-Transfer-Encoding") -
Cost header.
Declaration
Swift
public static let cost = Name("Cost") -
EDIINT-Features header.
Declaration
Swift
public static let ediintFeatures = Name("EDIINT-Features") -
Message-ID header.
Declaration
Swift
public static let messageID = Name("Message-ID") -
Method-Check header.
Declaration
Swift
public static let methodCheck = Name("Method-Check") -
Method-Check-Expires header.
Declaration
Swift
public static let methodCheckExpires = Name("Method-Check-Expires") -
Non-Compliance header.
Declaration
Swift
public static let nonCompliance = Name("Non-Compliance") -
Optional header.
Declaration
Swift
public static let optional = Name("Optional") -
Referer-Root header.
Declaration
Swift
public static let refererRoot = Name("Referer-Root") -
Resolution-Hint header.
Declaration
Swift
public static let resolutionHint = Name("Resolution-Hint") -
Resolver-Location header.
Declaration
Swift
public static let resolverLocation = Name("Resolver-Location") -
SubOK header.
Declaration
Swift
public static let subOK = Name("SubOK") -
Subst header.
Declaration
Swift
public static let subst = Name("Subst") -
Title header.
Declaration
Swift
public static let title = Name("Title") -
UA-Color header.
Declaration
Swift
public static let uaColor = Name("UA-Color") -
UA-Media header.
Declaration
Swift
public static let uaMedia = Name("UA-Media") -
UA-Pixels header.
Declaration
Swift
public static let uaPixels = Name("UA-Pixels") -
UA-Resolution header.
Declaration
Swift
public static let uaResolution = Name("UA-Resolution") -
UA-Windowpixels header.
Declaration
Swift
public static let uaWindowpixels = Name("UA-Windowpixels") -
Version header.
Declaration
Swift
public static let version = Name("Version") -
X-Device-Accept header.
Declaration
Swift
public static let xDeviceAccept = Name("X-Device-Accept") -
X-Device-Accept-Charset header.
Declaration
Swift
public static let xDeviceAcceptCharset = Name("X-Device-Accept-Charset") -
X-Device-Accept-Encoding header.
Declaration
Swift
public static let xDeviceAcceptEncoding = Name("X-Device-Accept-Encoding") -
X-Device-Accept-Language header.
Declaration
Swift
public static let xDeviceAcceptLanguage = Name("X-Device-Accept-Language") -
X-Device-User-Agent header.
Declaration
Swift
public static let xDeviceUserAgent = Name("X-Device-User-Agent")
View on GitHub
Name Struct Reference