Table of Contents

AddOrUpdateEntityTagHeader Method

Definition

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

decorator IDecorator<HttpResponse>

The IDecorator<T> 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

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