C# Class System.Net.Cache.HttpRequestCacheValidator

Inheritance: RequestCacheValidator
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

RevalidateCache() protected méthode

protected RevalidateCache ( ) : CacheValidationStatus
Résultat CacheValidationStatus

UpdateCache() protected méthode

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
Résultat CacheValidationStatus

ValidateCache() protected méthode

This method may add headers under the "Warning" header name
protected ValidateCache ( ) : CacheValidationStatus
Résultat CacheValidationStatus

ValidateFreshness() protected méthode

protected ValidateFreshness ( ) : CacheFreshnessStatus
Résultat CacheFreshnessStatus

ValidateRequest() protected méthode

protected ValidateRequest ( ) : CacheValidationStatus
Résultat CacheValidationStatus

ValidateResponse() protected méthode

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
Résultat CacheValidationStatus