Headers

public struct Headers : Encodable
extension Headers: Collection
extension Headers: ExpressibleByDictionaryLiteral

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias ArrayType = [Header]
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public init(_ headers: [HeaderName : String])
  • Undocumented

    Declaration

    Swift

    public init(_ headers: (HeaderName, String)...)
  • Undocumented

    Declaration

    Swift

    public init(_ headers: (String, String)...)
  • Undocumented

    Declaration

    Swift

    public func indices(for name: String) -> [Int]
  • Undocumented

    Declaration

    Swift

    public func indices(for name: HeaderName) -> [Int]
  • Undocumented

    Declaration

    Swift

    public mutating func add(_ value: String, for name: String)
  • Undocumented

    Declaration

    Swift

    public mutating func add(_ value: String, for name: HeaderName)
  • Undocumented

    Declaration

    Swift

    public mutating func set(_ value: String, for name: String)
  • Undocumented

    Declaration

    Swift

    public mutating func set(_ value: String, for name: HeaderName)
  • Undocumented

    Declaration

    Swift

    public mutating func remove(_ name: String)
  • Undocumented

    Declaration

    Swift

    public mutating func remove(_ name: HeaderName)
  • Undocumented

    Declaration

    Swift

    public mutating func remove(at index: Int)
  • Undocumented

    Declaration

    Swift

    public func has(_ name: String) -> Bool
  • Undocumented

    Declaration

    Swift

    public func has(_ name: HeaderName) -> Bool
  • Undocumented

    Declaration

    Swift

    public func values(for name: String) -> [String]
  • Undocumented

    Declaration

    Swift

    public func values(for name: HeaderName) -> [String]
  • Undocumented

    Declaration

    Swift

    public func value(for name: String) -> String?
  • Undocumented

    Declaration

    Swift

    public func value(for name: HeaderName) -> String?
  • Declaration

    Swift

    public typealias Index = ArrayType.Index
  • Declaration

    Swift

    public typealias Element = ArrayType.Element
  • Declaration

    Swift

    public var startIndex: Index { get }
  • Declaration

    Swift

    public var endIndex: Index { get }
  • Declaration

    Swift

    public subscript(index: Index) -> Element { get set }
  • Declaration

    Swift

    public func index(after index: Index) -> Index
  • Key

    Declaration

    Swift

    public typealias Key = String
  • Declaration

    Swift

    public typealias Value = String
  • Declaration

    Swift

    public init(dictionaryLiteral headers: (String, String)...)