Method
HeaderHelper.CopyHttpHeaders
CopyHttpHeaders(HttpContentHeaders, HttpContentHeaders, bool) #
Copies HTTP headers from one HttpContentHeaders instance to another.
public static void CopyHttpHeaders(HttpContentHeaders from, HttpContentHeaders to, bool safe = true)Parameters #
from HttpContentHeaders
The source HttpContentHeaders instance.
The target HttpContentHeaders instance.
safe bool
If set to true, headers that are added will be validated (an exception can be throw if an header is invalid). If false, invalid headers could be discarded, but no exception is thrown.