AddOrUpdateEntityTagHeader Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
AddOrUpdateEntityTagHeader(IDecorator<HttpResponse>, HttpRequest, ChecksumBuilder, bool)
Attempts to add or update the enclosed HttpResponse of the decorator with the necessary HTTP response headers needed to provide entity tag header information.
public static void AddOrUpdateEntityTagHeader(this IDecorator<HttpResponse> decorator, HttpRequest request, ChecksumBuilder builder, bool isWeak = false)
Parameters
decoratorIDecorator<HttpResponse>The IDecorator<T> to extend.
requestHttpRequestAn instance of the HttpRequest object.
builderChecksumBuilderA ChecksumBuilder that represents the integrity of the client.
isWeakboolA value that indicates if this entity-tag header is a weak validator.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-requestcannot be null -or-buildercannot be null.