C# Class System.Net.Cache.Rfc2616.Common

Mostra file Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
ComputeFreshness ( HttpRequestCacheValidator ctx ) : CacheFreshnessStatus
Construct200ok ( HttpRequestCacheValidator ctx ) : void
Construct206PartialContent ( HttpRequestCacheValidator ctx, int rangeStart ) : void
ConstructConditionalRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ConstructUnconditionalRefreshRequest ( HttpRequestCacheValidator ctx ) : void
GetBytesRange ( string ranges, long &start, long &end, long &total, bool isRequest ) : bool
OnValidateRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ReplaceOrUpdateCacheHeaders ( HttpRequestCacheValidator ctx, HttpWebResponse resp ) : void
TryConditionalRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
TryResponseFromCache ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ValidateCacheAfterResponse ( HttpRequestCacheValidator ctx, HttpWebResponse resp ) : CacheValidationStatus
ValidateCacheByClientPolicy ( HttpRequestCacheValidator ctx ) : bool
ValidateCacheOn5XXResponse ( HttpRequestCacheValidator ctx ) : CacheValidationStatus

Private Methods

Method Description
AsciiLettersNoCaseEqual ( string s1, string s2 ) : bool
CheckForRangeRequest ( HttpRequestCacheValidator ctx, string &ranges ) : TriState
OnUpdateCache ( HttpRequestCacheValidator ctx, HttpWebResponse resp ) : TriState
TryConditionalRangeRequest ( HttpRequestCacheValidator ctx ) : bool
UnsafeAsciiLettersNoCaseEqual ( char s1, int start, int length, string s2 ) : bool
ValidateCacheBySpecialCases ( HttpRequestCacheValidator ctx ) : TriState
ValidateCacheByVaryHeader ( HttpRequestCacheValidator ctx ) : TriState

Method Details

ComputeFreshness() public static method

public static ComputeFreshness ( HttpRequestCacheValidator ctx ) : CacheFreshnessStatus
ctx HttpRequestCacheValidator
return CacheFreshnessStatus

Construct200ok() public static method

public static Construct200ok ( HttpRequestCacheValidator ctx ) : void
ctx HttpRequestCacheValidator
return void

Construct206PartialContent() public static method

public static Construct206PartialContent ( HttpRequestCacheValidator ctx, int rangeStart ) : void
ctx HttpRequestCacheValidator
rangeStart int
return void

ConstructConditionalRequest() public static method

public static ConstructConditionalRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ctx HttpRequestCacheValidator
return CacheValidationStatus

ConstructUnconditionalRefreshRequest() public static method

public static ConstructUnconditionalRefreshRequest ( HttpRequestCacheValidator ctx ) : void
ctx HttpRequestCacheValidator
return void

GetBytesRange() public static method

public static GetBytesRange ( string ranges, long &start, long &end, long &total, bool isRequest ) : bool
ranges string
start long
end long
total long
isRequest bool
return bool

OnValidateRequest() public static method

public static OnValidateRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ctx HttpRequestCacheValidator
return CacheValidationStatus

ReplaceOrUpdateCacheHeaders() public static method

public static ReplaceOrUpdateCacheHeaders ( HttpRequestCacheValidator ctx, HttpWebResponse resp ) : void
ctx HttpRequestCacheValidator
resp System.Net.HttpWebResponse
return void

TryConditionalRequest() public static method

public static TryConditionalRequest ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ctx HttpRequestCacheValidator
return CacheValidationStatus

TryResponseFromCache() public static method

public static TryResponseFromCache ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ctx HttpRequestCacheValidator
return CacheValidationStatus

ValidateCacheAfterResponse() public static method

public static ValidateCacheAfterResponse ( HttpRequestCacheValidator ctx, HttpWebResponse resp ) : CacheValidationStatus
ctx HttpRequestCacheValidator
resp System.Net.HttpWebResponse
return CacheValidationStatus

ValidateCacheByClientPolicy() public static method

public static ValidateCacheByClientPolicy ( HttpRequestCacheValidator ctx ) : bool
ctx HttpRequestCacheValidator
return bool

ValidateCacheOn5XXResponse() public static method

public static ValidateCacheOn5XXResponse ( HttpRequestCacheValidator ctx ) : CacheValidationStatus
ctx HttpRequestCacheValidator
return CacheValidationStatus