Table of Contents

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 HttpContext

The Microsoft.AspNetCore.Http.HttpContext of the current request.

bodyStream Stream

The intercepted Stream of the response body.

Returns

Task

A 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.