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
fromHttpContentHeadersThe source HttpContentHeaders instance.
toHttpContentHeadersThe target HttpContentHeaders instance.
safeboolIf 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.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語