Table of Contents

Interface IETagGenerator

Namespace
JsonApiDotNetCore.Serialization.Response
Assembly
JsonApiDotNetCore.dll

Provides generation of an ETag HTTP response header.

public interface IETagGenerator

Methods

Generate(string, string)

Generates an ETag HTTP response header value for the response to an incoming request.

EntityTagHeaderValue Generate(string requestUrl, string responseBody)

Parameters

requestUrl string

The incoming request URL, including query string.

responseBody string

The produced response body.

Returns

EntityTagHeaderValue

The ETag, or null to disable saving bandwidth.