RequestHeaderFactory
public protocol RequestHeaderFactory
Abstracts how HTTP headers are added to a Dictionary.
-
Adds a name and value to a Dictionary of HTTP request headers
Declaration
Swift
func addHeaders(headers: inout [String : String])
Parameters
headers
A Dictionary of HTTP request headers