TypedRest for .NET 1.3.6
build type-safe fluent-style REST API clients
TypedRest.Http.ResponseCache Class Reference

Captures the content of an HttpResponseMessage for caching. More...

Public Member Functions

HttpContent GetContent ()
 Returns the cached HttpClient.
 
void SetIfModifiedHeaders (HttpRequestHeaders headers)
 Sets request headers that require that the resource has been modified since it was cached.
 
void SetIfUnmodifiedHeaders (HttpRequestHeaders headers)
 Sets request headers that require that the resource has not been modified since it was cached.
 

Static Public Member Functions

static ? ResponseCache From (HttpResponseMessage response)
 Creates a ResponseCache from a response if it is eligible for caching. More...
 

Properties

bool IsExpired [get]
 Indicates whether this cached response has expired.
 

Detailed Description

Captures the content of an HttpResponseMessage for caching.

Member Function Documentation

◆ From()

static ? ResponseCache TypedRest.Http.ResponseCache.From ( HttpResponseMessage  response)
static

Creates a ResponseCache from a response if it is eligible for caching.

Returns
The ResponseCache; null if the response is not eligible for caching.

The documentation for this class was generated from the following file: