HTTPHeaders
public extension HTTPHeaders
-
Access the value of an
HTTPHeaderwithin a collection ofHTTPHeaders.Declaration
Swift
subscript(index: HTTPHeader) -> String? { get set }Parameters
indexThe
HTTPHeadervalue to access. -
Remove an
HTTPHeadervalue from a collection ofHTTPHeaders.Declaration
Swift
mutating func removeValue(forKey key: HTTPHeader) -> Value?Parameters
indexThe
HTTPHeadervalue to remove. -
Initialize a collection of
HTTPHeadervalues.Declaration
Swift
init(_ values: [HTTPHeader : String])Parameters
valuesA dictionary of
HTTPHeadervalues to populate theHTTPHeadersinstance.
View on GitHub
HTTPHeaders Extension Reference