C# Class Flatwhite.WebApi.CacheControl.EtagHeaderHandler

An implementation of ICachControlHeaderHandler that use the etag to check whether these is an exisisting cache data
Inheritance: ICachControlHeaderHandler
ファイルを表示 Open project: vanthoainguyen/Flatwhite Class Usage Examples

Public Methods

Method Description
EtagHeaderHandler ( ICacheResponseBuilder builder ) : System

Initializes an object of EtagHeaderHandler using a provided ICacheResponseBuilder

HandleAsync ( CacheControlHeaderValue cacheControl, HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Try to get the cache from etag and build the response if cache is available

Method Details

EtagHeaderHandler() public method

Initializes an object of EtagHeaderHandler using a provided ICacheResponseBuilder
public EtagHeaderHandler ( ICacheResponseBuilder builder ) : System
builder ICacheResponseBuilder
return System

HandleAsync() public method

Try to get the cache from etag and build the response if cache is available
public HandleAsync ( CacheControlHeaderValue cacheControl, HttpRequestMessage request, CancellationToken cancellationToken ) : Task
cacheControl System.Net.Http.Headers.CacheControlHeaderValue
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task