AddOrUpdateHeaders Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
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
decoratorIDecorator<IHeaderDictionary>The IDecorator<T> to extend.
responseHeadersHttpResponseHeadersThe HttpResponseHeaders to copy.