Structures
The following structures are available globally.
-
Describes a HTTP header field by name.
Also contains all HTTP permanent message header field names, referenced from: https://www.iana.org/assignments/message-headers/message-headers.xhtml
See moreDeclaration
Swift
public struct HTTPHeaderextension HTTPHeader: Hashable -
Defines storage for a collection of
HTTPHeaders for use in aURLRequest.An instance can be initialized using a dictionary literal (e.g.
See moreheaders = [.contentType: HTTPMediaType.json.stringValue()]).Declaration
Swift
public struct HTTPHeadersextension HTTPHeaders: ExpressibleByDictionaryLiteral -
Describes media types for the
Content-TypeHTTP header.Also contains a number of default media types, defined according to: https://tools.ietf.org/html/rfc2045#section-5
See moreDeclaration
Swift
public struct HTTPMediaTypeextension HTTPMediaType: Equatableextension HTTPMediaType: CustomStringConvertible
View on GitHub
Install in Dash
Structures Reference