8 writes to Method
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
324Method = method;
Internal\Http\HttpProtocol.cs (1)
361Method = HttpMethod.None;
Internal\Http2\Http2Stream.cs (3)
352Method = HttpUtilities.GetKnownMethod(_methodText); 701Method = HttpMethod.Get; 706Method = HttpMethod.Post;
Internal\Http3\Http3Stream.cs (3)
248Method = HttpMethod.Get; 253Method = HttpMethod.Post; 1073Method = HttpUtilities.GetKnownMethod(_methodText);
20 references to Method
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\Http1MessageBody.cs (3)
208if (httpVersion == HttpVersion.Http10 && (context.Method == HttpMethod.Post || context.Method == HttpMethod.Put)) 211KestrelBadHttpRequestException.Throw(RequestRejectionReason.LengthRequiredHttp10, context.Method);
Internal\Http\HttpProtocol.cs (7)
913if (Method != HttpMethod.Head && 1092if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1113if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1272else if (Method == HttpMethod.Connect && Is2xxCode(StatusCode)) 1288return Method != HttpMethod.Head && 1298Method != HttpMethod.Head && 1370if (Method != HttpMethod.Head)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43_methodText = HttpUtilities.MethodToString(Method) ?? string.Empty;
Internal\Http2\Http2Stream.cs (5)
250if (Method == HttpMethod.None && !TryValidateMethod()) 260if (Method == HttpMethod.Connect) 324if (Method == HttpMethod.Options && path.Length == 1 && path[0] == '*') 354if (Method == HttpMethod.None) 360if (Method == HttpMethod.Custom)
Internal\Http3\Http3Stream.cs (4)
1002if (Method == HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0) 1045if (Method == HttpMethod.Options && path.Length == 1 && path[0] == '*') 1075if (Method == HttpMethod.None) 1081if (Method == HttpMethod.Custom)