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 mutating func add(_ header: Header)
  • Undocumented

    Declaration

    Swift

    public mutating func set(_ header: Header)
  • Undocumented

    Declaration

    Swift

    public func get(_ name: String) -> String?
  • Undocumented

    Declaration

    Swift

    public func get(_ name: HeaderName) -> String?
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public func has(_ name: HeaderName) -> Bool
  • 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)
  • 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)...)