HttpCachingDelegateHandler Class

A delegating handler that caches HTTP responses following RFC 7234.

public sealed class HttpCachingDelegateHandler : DelegatingHandler
Inheritance
DelegatingHandler HttpCachingDelegateHandler

Constructors

NameDescription
HttpCachingDelegateHandler(IHttpCacheStore, HttpCachingOptions?)Initializes a new instance of the HttpCachingDelegateHandler class.
HttpCachingDelegateHandler(HttpMessageHandler, IHttpCacheStore, HttpCachingOptions?)Initializes a new instance of the HttpCachingDelegateHandler class with an inner handler.

HttpCachingDelegateHandler overloads

HttpCachingDelegateHandler(IHttpCacheStore, HttpCachingOptions?)

HttpCachingDelegateHandler.cs

Initializes a new instance of the HttpCachingDelegateHandler class.

public HttpCachingDelegateHandler(IHttpCacheStore store, HttpCachingOptions? options = null)
Parameters
store IHttpCacheStore
The cache store used to persist entries.
options HttpCachingOptions?
The caching options.

HttpCachingDelegateHandler(HttpMessageHandler, IHttpCacheStore, HttpCachingOptions?)

HttpCachingDelegateHandler.cs

Initializes a new instance of the HttpCachingDelegateHandler class with an inner handler.

public HttpCachingDelegateHandler(HttpMessageHandler innerHandler, IHttpCacheStore store, HttpCachingOptions? options = null)
Parameters
innerHandler HttpMessageHandler
The inner handler.
store IHttpCacheStore
The cache store used to persist entries.
options HttpCachingOptions?
The caching options.