Table of Contents

Method CopyHttpHeaders

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

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.

to HttpContentHeaders

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.