Table of Contents

AddOrUpdateHeaders Method

Definition

AddOrUpdateHeaders(IDecorator<IHeaderDictionary>, HttpResponseHeaders)

Attempts to add or update one or more elements from the provided collection of responseHeaders to the enclosed IHeaderDictionary of the decorator.

public static void AddOrUpdateHeaders(this IDecorator<IHeaderDictionary> decorator, HttpResponseHeaders responseHeaders)

Parameters

decorator IDecorator<IHeaderDictionary>

The IDecorator<T> to extend.

responseHeaders HttpResponseHeaders

The HttpResponseHeaders to copy.