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
context
HttpContextThe Microsoft.AspNetCore.Http.HttpContext of the current request.
bodyStream
StreamThe intercepted System.IO.Stream of the response body.
Returns
- Task
A System.Threading.Tasks.Task that represents the execution of this validator.
Remarks
bodyStream
is written to the response body if condition is not equal to a 304 status code.