Method 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
HttpContentHeadersThe source HttpContentHeaders instance.
to
HttpContentHeadersThe target HttpContentHeaders instance.
safe
boolIf 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.