C# Class ServiceStack.HttpCacheExtensions

Exibir arquivo Open project: ServiceStack/ServiceStack

Public Methods

Method Description
ETagMatch ( this req, string eTag ) : bool
EndNotModified ( this res, string description = null ) : void
Has ( this cache, CacheControl flag ) : bool
HasValidCache ( this req, System.DateTime lastModified ) : bool
HasValidCache ( this req, string eTag ) : bool
HasValidCache ( this req, string eTag, System.DateTime lastModified ) : bool
NotModifiedSince ( this req, System.DateTime lastModified ) : bool
ShouldAddLastModifiedToOptimizedResults ( this feature ) : bool

Private Methods

Method Description
StripWeakRef ( this eTag ) : string

Method Details

ETagMatch() public static method

public static ETagMatch ( this req, string eTag ) : bool
req this
eTag string
return bool

EndNotModified() public static method

public static EndNotModified ( this res, string description = null ) : void
res this
description string
return void

Has() public static method

public static Has ( this cache, CacheControl flag ) : bool
cache this
flag CacheControl
return bool

HasValidCache() public static method

public static HasValidCache ( this req, System.DateTime lastModified ) : bool
req this
lastModified System.DateTime
return bool

HasValidCache() public static method

public static HasValidCache ( this req, string eTag ) : bool
req this
eTag string
return bool

HasValidCache() public static method

public static HasValidCache ( this req, string eTag, System.DateTime lastModified ) : bool
req this
eTag string
lastModified System.DateTime
return bool

NotModifiedSince() public static method

public static NotModifiedSince ( this req, System.DateTime lastModified ) : bool
req this
lastModified System.DateTime
return bool

ShouldAddLastModifiedToOptimizedResults() public static method

public static ShouldAddLastModifiedToOptimizedResults ( this feature ) : bool
feature this
return bool