init(name:value:)

Create an HTTP field from a name and a value.

HTTPField.swift:57
init(name: Name, value: String)

Parameters

name

The HTTP field name.

value

The HTTP field value is initialized from the UTF-8 encoded bytes of the string. Invalid bytes are converted into space characters.