HTTPHeaders
public extension HTTPHeaders
-
Access the value of an
HTTPHeader
within a collection ofHTTPHeaders
.Declaration
Swift
subscript(index: HTTPHeader) -> String? { get set }
Parameters
index
The
HTTPHeader
value to access. -
Remove an
HTTPHeader
value from a collection ofHTTPHeaders
.Declaration
Swift
mutating func removeValue(forKey key: HTTPHeader) -> Value?
Parameters
index
The
HTTPHeader
value to remove. -
Initialize a collection of
HTTPHeader
values.Declaration
Swift
init(_ values: [HTTPHeader : String])
Parameters
values
A dictionary of
HTTPHeader
values to populate theHTTPHeaders
instance.