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

Instance MethodNIOHTTP1

remove(name:)

Remove all values for a given header name from the block.
mutating func remove(name: HTTPHeaders.Name)

Parameters

name

The name of the header field to remove from the block.

Discussion

This method uses case-insensitive comparisons for the header field name.