56 references to Request
System (56)
net\System\Net\Cache\_RequestCacheProtocol.cs (3)
173
if(Logging.On) Logging.Enter(Logging.RequestCache, this, "GetRevalidateStatus", (_Validator == null? null: _Validator.
Request
));
655
"Request#" + _Validator.
Request
.GetHashCode().ToString(NumberFormatInfo.InvariantInfo) +
656
", Policy = " + _Validator.
Request
.CachePolicy.ToString() +
net\System\Net\Cache\_Rfc2616CacheValidators.cs (41)
62
ctx.
Request
.Headers.RemoveInternal(HttpKnownHeaderNames.Pragma);
68
ctx.
Request
.Headers.RemoveInternal(HttpKnownHeaderNames.CacheControl);
73
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "no-store");
74
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "no-cache");
75
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.Pragma, "no-cache");
83
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "no-cache");
84
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.Pragma, "no-cache");
90
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-age=0");
91
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.Pragma, "no-cache");
98
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "min-fresh=" + (int)ctx.Policy.MinFresh.TotalSeconds);
101
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-age=" + (int)ctx.Policy.MaxAge.TotalSeconds);
104
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-stale=" + (int)ctx.Policy.MaxStale.TotalSeconds);
110
ctx.
Request
.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "only-if-cached");
236
if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_server_didnt_satisfy_range, ctx.
Request
.Headers[HttpKnownHeaderNames.Range]));
286
ctx.
Request
.Headers.RemoveInternal(ctx.RequestIfHeader1);
290
ctx.
Request
.Headers.RemoveInternal(ctx.RequestIfHeader2);
294
ctx.
Request
.Headers.RemoveInternal(HttpKnownHeaderNames.Range);
474
if (ctx.
Request
.Headers[HttpKnownHeaderNames.IfModifiedSince] != null ||
475
ctx.
Request
.Headers[HttpKnownHeaderNames.IfNoneMatch] != null ||
476
ctx.
Request
.Headers[HttpKnownHeaderNames.IfRange] != null ||
477
ctx.
Request
.Headers[HttpKnownHeaderNames.IfMatch] != null ||
478
ctx.
Request
.Headers[HttpKnownHeaderNames.IfUnmodifiedSince] != null )
816
if (!ctx.CacheEntry.IsPrivateEntry && ctx.
Request
.Headers[HttpKnownHeaderNames.Authorization] != null) {
1018
if (ctx.
Request
.Headers[HttpKnownHeaderNames.Authorization] != null) {
1371
string[] requestValues = ctx.
Request
.Headers.GetValues((string)varyValues[i]);
1429
((HttpWebRequest)ctx.
Request
).AddRange((int)ctx.CacheEntry.StreamSize);
1430
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range, ctx.
Request
.Headers[HttpKnownHeaderNames.Range]));
1518
((HttpWebRequest)ctx.
Request
).AddRange((int)ctx.CacheEntry.StreamSize);
1519
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range, ctx.
Request
.Headers[HttpKnownHeaderNames.Range]));
1535
if ((ranges = ctx.
Request
.Headers[HttpKnownHeaderNames.Range]) != null) {
1539
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range_request_range, ctx.
Request
.Headers[HttpKnownHeaderNames.Range]));
1596
ctx.
Request
.Headers[HttpKnownHeaderNames.IfNoneMatch] = str;
1600
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_none_match, ctx.
Request
.Headers[HttpKnownHeaderNames.IfNoneMatch]));
1606
ctx.
Request
.Headers.ChangeInternal(HttpKnownHeaderNames.IfModifiedSince, str);
1615
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_modified_since, ctx.
Request
.Headers[HttpKnownHeaderNames.IfModifiedSince]));
1651
ctx.
Request
.Headers[HttpKnownHeaderNames.IfRange] = str;
1654
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_range, ctx.
Request
.Headers[HttpKnownHeaderNames.IfRange]));
1686
ctx.
Request
.Headers[HttpKnownHeaderNames.IfRange] = str;
1689
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_range, ctx.
Request
.Headers[HttpKnownHeaderNames.IfRange]));
1736
WebHeaderCollection cc = ctx.
Request
.Headers;
1791
string headerValue = ctx.
Request
.Headers[(string)varyValues[i]];
net\System\Net\Cache\FtpRequestCacheValidator.cs (11)
69
if (
Request
is HttpWebRequest)
79
string method =
Request
.Method.ToUpper(CultureInfo.InvariantCulture);
92
if ((RequestMethod != HttpMethod.Get || !((FtpWebRequest)
Request
).UseBinary) && Policy.Level == RequestCacheLevel.CacheOnly)
101
if (!((FtpWebRequest)
Request
).UseBinary)
224
long contentOffset =
Request
is FtpWebRequest ? ((FtpWebRequest)
Request
).ContentOffset: 0L;
379
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_not_updated_based_on_policy,
Request
.Method));
412
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_removed_existing_based_on_method,
Request
.Method));
439
if (((FtpWebRequest)
Request
).ContentOffset != 0L)
441
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_not_supported_for_ftp_restart, ((FtpWebRequest)
Request
).ContentOffset.ToString(CultureInfo.InvariantCulture)));
498
FtpWebRequest request =
Request
as FtpWebRequest;
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
192
string method =
Request
.Method.ToUpper(CultureInfo.InvariantCulture);