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
requestUrlstringThe incoming request URL, including query string.
responseBodystringThe produced response body.
Returns
- EntityTagHeaderValue
The ETag, or
nullto disable saving bandwidth.