Skip to content

Extended Structure

HTTPHeaders

extension HTTPHeaders

Topics

Structures

Instance Properties

  • accept
    Returns a collection of MediaTypePreferences specified by this HTTP message’s "Accept" header.
  • basicAuthorization
    Access or set the Authorization: Basic: ... header.
  • bearerAuthorization
    Access or set the Authorization: Bearer: ... header.
  • cacheControl
    Gets the value of the Cache-Control header, if present.
  • connection
  • contentDisposition
    Convenience for accessing the Content-Disposition header.
  • contentRange
    Convenience for accessing the Content-Range response header.
  • contentType
    MediaType specified by this message’s "Content-Type" header.
  • cookie
    Get and set HTTPCookies for an HTTP request This accesses the "Cookie" header.
  • expires
    Gets the value of the Expires header, if present.
  • forwarded
    Convenience for accessing the Forwarded header. This header is added by proxies to pass information about the original request.
  • lastModified
  • links
    Convenience for accessing the Link header as an array of provided links.
  • range
    Convenience for accessing the Range request header.
  • responseCompression
    A marker header internal to vapor that explicitly allows or disallows response compression.
  • setCookie
    Get and set HTTPCookies for an HTTP response This accesses the "Set-Cookie" header.

Instance Methods

Subscripts

Enumerations

  • HTTPHeaders.RangeUnit
    The unit in which ContentRanges and Ranges are specified. This is usually bytes. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range

Default Implementations

Relationships

Conforms To

  • Swift.Copyable
  • Swift.CustomDebugStringConvertible
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Escapable