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
stringThe incoming request URL, including query string.
responseBody
stringThe produced response body.
Returns
- EntityTagHeaderValue
The ETag, or
null
to disable saving bandwidth.