HTTPRequest

An HTTP request message consisting of pseudo header fields and header fields.

HTTPRequest.swift:23
struct HTTPRequest

Currently supported pseudo header fields are “:method”, “:scheme”, “:authority”, “:path”, and “:protocol”. Conveniences are provided to set these pseudo header fields through a URL and strings.

In a legacy HTTP/1 context, the “:scheme” is ignored and the “:authority” is translated into the “Host” header.