Table of Contents

AddOrUpdateEntityTagHeader Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Http
Assemblies
Cuemon.Extensions.AspNetCore.dll
Source
src/Cuemon.Extensions.AspNetCore/Http/HttpResponseExtensions.cs

AddOrUpdateEntityTagHeader(HttpResponse, HttpRequest, ChecksumBuilder, bool)

Attempts to add or update the necessary HTTP response headers needed to provide entity tag header information.

public static void AddOrUpdateEntityTagHeader(this HttpResponse response, HttpRequest request, ChecksumBuilder builder, bool isWeak = false)

Parameters

response HttpResponse

The HttpResponse to extend.

request HttpRequest

An instance of the HttpRequest object.

builder ChecksumBuilder

A ChecksumBuilder that represents the integrity of the client.

isWeak bool

A value that indicates if this entity-tag header is a weak validator.

Exceptions

ArgumentNullException

response cannot be null -or- request cannot be null -or- builder cannot be null.