add(contentsOf:)

    Add a sequence of header name/value pairs to the block.

    HTTPTypes.swift:377
    mutating func add<S>(contentsOf other: S) where S : Sequence, S.Element == (String, String)

    Parameters

    contentsOf

    The sequence of header name/value pairs. For maximum compatibility the header should be an ASCII string. For future-proofing with HTTP/2 lowercase header names are strongly recommended.

    This method is strictly additive: if there are other entries with the same header name already in the block, this will add new entries.

    Other members in extension

    Types

    Typealiases

    Type members

    Instance members