HttpCacheExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class HttpCacheExtensions
Methods
Has(CacheControl, CacheControl)
View Source
Declaration
public static bool Has(this CacheControl cache, CacheControl flag)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.CacheControl | cache |
ServiceStack.CacheControl | flag |
EndNotModified(IResponse, String)
View Source
Declaration
public static void EndNotModified(this IResponse res, string description = null)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | res |
System.String | description |
ETagMatch(IRequest, String)
View Source
Declaration
public static bool ETagMatch(this IRequest req, string eTag)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | eTag |
NotModifiedSince(IRequest, Nullable<DateTime>)
View Source
Declaration
public static bool NotModifiedSince(this IRequest req, DateTime? lastModified)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Nullable<System.DateTime> | lastModified |
HasValidCache(IRequest, String)
View Source
Declaration
public static bool HasValidCache(this IRequest req, string eTag)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | eTag |
HasValidCache(IRequest, Nullable<DateTime>)
View Source
Declaration
public static bool HasValidCache(this IRequest req, DateTime? lastModified)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Nullable<System.DateTime> | lastModified |
HasValidCache(IRequest, String, Nullable<DateTime>)
View Source
Declaration
public static bool HasValidCache(this IRequest req, string eTag, DateTime? lastModified)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | eTag |
System.Nullable<System.DateTime> | lastModified |
ShouldAddLastModifiedToOptimizedResults(HttpCacheFeature)
View Source
Declaration
public static bool ShouldAddLastModifiedToOptimizedResults(this HttpCacheFeature feature)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.HttpCacheFeature | feature |