15 writes to RequestMethod
System (15)
net\System\Net\Cache\FtpRequestCacheValidator.cs (6)
83
case WebRequestMethods.Ftp.DownloadFile:
RequestMethod
= HttpMethod.Get; break;
84
case WebRequestMethods.Ftp.UploadFile:
RequestMethod
= HttpMethod.Put;break;
85
case WebRequestMethods.Ftp.AppendFile:
RequestMethod
= HttpMethod.Put;break;
86
case WebRequestMethods.Ftp.Rename:
RequestMethod
= HttpMethod.Put;break;
87
case WebRequestMethods.Ftp.DeleteFile:
RequestMethod
= HttpMethod.Delete;break;
89
default:
RequestMethod
= HttpMethod.Other; break;
net\System\Net\Cache\HttpRequestCacheValidator.cs (9)
196
case "GET" :
RequestMethod
= HttpMethod.Get; break;
197
case "POST":
RequestMethod
= HttpMethod.Post; break;
198
case "HEAD":
RequestMethod
= HttpMethod.Head; break;
199
case "PUT" :
RequestMethod
= HttpMethod.Put; break;
200
case "DELETE":
RequestMethod
= HttpMethod.Delete; break;
201
case "OPTIONS":
RequestMethod
= HttpMethod.Options; break;
202
case "TRACE":
RequestMethod
= HttpMethod.Trace; break;
203
case "CONNECT":
RequestMethod
= HttpMethod.Connect; break;
204
default:
RequestMethod
= HttpMethod.Other; break;
20 references to RequestMethod
System (20)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (14)
346
(ctx.
RequestMethod
>= HttpMethod.Post && ctx.
RequestMethod
<= HttpMethod.Delete || ctx.
RequestMethod
== HttpMethod.Other)
357
if (resp.StatusCode == HttpStatusCode.NotModified || ctx.
RequestMethod
== HttpMethod.Head)
450
if (ctx.
RequestMethod
>= HttpMethod.Post && ctx.
RequestMethod
<= HttpMethod.Delete)
463
if (ctx.
RequestMethod
< HttpMethod.Head || ctx.
RequestMethod
> HttpMethod.Get )
674
if (ctx.
RequestMethod
!= HttpMethod.Head &&
675
ctx.
RequestMethod
!= HttpMethod.Get &&
676
ctx.
RequestMethod
!= HttpMethod.Post) {
688
if (ctx.
RequestMethod
== HttpMethod.Head) {
827
if (ctx.
RequestMethod
== HttpMethod.Post && resp.Headers.Expires == null) {
1051
if (ctx.
RequestMethod
== HttpMethod.Head) {
net\System\Net\Cache\FtpRequestCacheValidator.cs (5)
92
if ((
RequestMethod
!= HttpMethod.Get || !((FtpWebRequest)Request).UseBinary) && Policy.Level == RequestCacheLevel.CacheOnly)
377
if (
RequestMethod
== HttpMethod.Other)
404
if (
RequestMethod
== HttpMethod.Delete ||
RequestMethod
== HttpMethod.Put)
406
if (
RequestMethod
== HttpMethod.Delete ||
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
268
if (
RequestMethod
== HttpMethod.Head)