Interface ICacheableValidator
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assembly
- Cuemon.AspNetCore.dll
An HTTP validator tailored for cacheable flows, that asynchronously surrounds execution of the intercepted response body.
public interface ICacheableValidator
Methods
ProcessAsync(HttpContext, Stream)
Called asynchronously before the bodyStream is conditionally written to the response.
Task ProcessAsync(HttpContext context, Stream bodyStream)
Parameters
contextHttpContextThe HttpContext of the current request.
bodyStreamStreamThe intercepted Stream of the response body.
Returns
Remarks
bodyStream is written to the response body if condition is not equal to a 304 status code.