Skip to content
It's Vapor Week! Celebrating 10 Years of Vapor Read more

Instance MethodNIOHTTP1

first(name:)

Returns the first header value with the supplied name.
func first(name: HTTPHeaders.Name) -> String?

Parameters

name

The header field name whose values are to be retrieved.