Field
public struct Field
A header field in a HTTP request. A field consists of a key-value pair mapping name onto value.
Note
As HTTP headers are case insensitive, the implementations ofHashable and Equatable take this into
consideration and convert all header names to lowercase before comparing them.
-
The name of a header field in a HTTP request.
See moreDeclaration
Swift
public struct Name : Hashable, RawRepresentable, ExpressibleByStringLiteral, CustomStringConvertible
-
Undocumented
Declaration
Swift
public let name: Name -
Undocumented
Declaration
Swift
public let value: String
-
Undocumented
Declaration
Swift
public init(name: Name, value: String)
-
Declaration
Swift
public var description: String { get }
-
Undocumented
Declaration
Swift
public static func ~= (pattern: Field, value: Field) -> Bool
View on GitHub
Field Structure Reference