C# Класс System.Net.Cache.HttpRequestCacheValidator

Наследование: RequestCacheValidator
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateCacheHeaders void
CreateSystemMeta void
CreateValidator RequestCacheValidator
FetchCacheControl void
FetchHeaderValues void
FinallyUpdateCacheEntry void
HttpRequestCacheValidator System
ParseHeaderValues void
ParseNameValues string
ParseStatusLine string
ParseValuesCallbackMethod void
ParseWarningsCallbackMethod void
RemoveWarnings_1xx void
UpdateStringCollection void
ZeroPrivateVars void

Защищенные методы

Метод Описание
RevalidateCache ( ) : CacheValidationStatus
UpdateCache ( ) : CacheValidationStatus

This action handler is responsible for making final decision on whether a received response can be cached.

Invalid result from this method means the response must not be cached

ValidateCache ( ) : CacheValidationStatus This method may add headers under the "Warning" header name
ValidateFreshness ( ) : CacheFreshnessStatus
ValidateRequest ( ) : CacheValidationStatus
ValidateResponse ( ) : CacheValidationStatus

This validation method is responsible to answer whether the live response is sufficient to make the final decision for caching protocol. This is useful in case of possible failure or inconsistent results received from the remote cache.

Invalid response from this method means the request was internally modified and should be retried

Приватные методы

Метод Описание
CreateCacheHeaders ( bool ignoreFirstString ) : void
CreateSystemMeta ( ) : void
CreateValidator ( ) : RequestCacheValidator
FetchCacheControl ( string s, bool forCache ) : void
FetchHeaderValues ( bool forCache ) : void
FinallyUpdateCacheEntry ( ) : void
HttpRequestCacheValidator ( bool strictCacheErrors, System.TimeSpan unspecifiedMaxAge ) : System
ParseHeaderValues ( string values, ParseCallback calback, IList list ) : void
ParseNameValues ( NameValueCollection cc, StringCollection sc, int start ) : string
ParseStatusLine ( ) : string
ParseValuesCallbackMethod ( string s, int start, int end, IList list ) : void
ParseWarningsCallbackMethod ( string s, int start, int end, IList list ) : void
RemoveWarnings_1xx ( ) : void
UpdateStringCollection ( StringCollection result, NameValueCollection cc, bool winInetCompat ) : void
ZeroPrivateVars ( ) : void

Описание методов

RevalidateCache() защищенный Метод

protected RevalidateCache ( ) : CacheValidationStatus
Результат CacheValidationStatus

UpdateCache() защищенный Метод

This action handler is responsible for making final decision on whether a received response can be cached.

Invalid result from this method means the response must not be cached
protected UpdateCache ( ) : CacheValidationStatus
Результат CacheValidationStatus

ValidateCache() защищенный Метод

This method may add headers under the "Warning" header name
protected ValidateCache ( ) : CacheValidationStatus
Результат CacheValidationStatus

ValidateFreshness() защищенный Метод

protected ValidateFreshness ( ) : CacheFreshnessStatus
Результат CacheFreshnessStatus

ValidateRequest() защищенный Метод

protected ValidateRequest ( ) : CacheValidationStatus
Результат CacheValidationStatus

ValidateResponse() защищенный Метод

This validation method is responsible to answer whether the live response is sufficient to make the final decision for caching protocol. This is useful in case of possible failure or inconsistent results received from the remote cache.

Invalid response from this method means the request was internally modified and should be retried
protected ValidateResponse ( ) : CacheValidationStatus
Результат CacheValidationStatus