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