13 writes to Method
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
324Method = method;
Internal\Http\HttpProtocol.cs (1)
360Method = HttpMethod.None;
Internal\Http2\Http2Stream.cs (3)
351Method = HttpUtilities.GetKnownMethod(_methodText); 700Method = HttpMethod.Get; 705Method = HttpMethod.Post;
Internal\Http3\Http3Stream.cs (3)
261Method = HttpMethod.Get; 266Method = HttpMethod.Post; 1115Method = HttpUtilities.GetKnownMethod(_methodText);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http1\Http1ConnectionTests.cs (3)
610_http1Connection.Method = HttpMethod.Head; 621_http1Connection.Method = HttpMethod.Head; 632_http1Connection.Method = HttpMethod.Head;
MessageBodyTests.cs (2)
565input.Http1Connection.Method = method; 580input.Http1Connection.Method = method;
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)
918if (Method != HttpMethod.Head && 1097if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1118if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1280else if (Method == HttpMethod.Connect && Is2xxCode(StatusCode)) 1296return Method != HttpMethod.Head && 1306Method != HttpMethod.Head && 1378if (Method != HttpMethod.Head)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43_methodText = HttpUtilities.MethodToString(Method) ?? string.Empty;
Internal\Http2\Http2Stream.cs (5)
249if (Method == HttpMethod.None && !TryValidateMethod()) 259if (Method == HttpMethod.Connect) 323if (Method == HttpMethod.Options && path.Length == 1 && path[0] == '*') 353if (Method == HttpMethod.None) 359if (Method == HttpMethod.Custom)
Internal\Http3\Http3Stream.cs (4)
1044if (Method == HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0) 1087if (Method == HttpMethod.Options && path.Length == 1 && path[0] == '*') 1117if (Method == HttpMethod.None) 1123if (Method == HttpMethod.Custom)