first(name:)

Retrieves the first value for a given header-field / dictionary-key (name) from the block. This method uses case-insensitive comparisons.

HTTP.swift:28
func first(name: String) -> String?

Parameters

name

The header field name whose first value should be retrieved.

Returns

The first value for the header field name.