8 writes to Method
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
470Method = method;
Internal\Http\HttpProtocol.cs (1)
378Method = HttpMethod.None;
Internal\Http2\Http2Stream.cs (3)
358Method = HttpUtilities.GetKnownMethod(_methodText); 710Method = HttpMethod.Get; 715Method = HttpMethod.Post;
Internal\Http3\Http3Stream.cs (3)
311Method = HttpMethod.Get; 316Method = HttpMethod.Post; 1185Method = HttpUtilities.GetKnownMethod(_methodText);
21 references to Method
Microsoft.AspNetCore.Server.Kestrel.Core (21)
Internal\Http\Http1MessageBody.cs (3)
224if (httpVersion == HttpVersion.Http10 && (context.Method == HttpMethod.Post || context.Method == HttpMethod.Put)) 227KestrelBadHttpRequestException.Throw(RequestRejectionReason.LengthRequiredHttp10, context.Method);
Internal\Http\HttpProtocol.cs (8)
936if (Method != HttpMethod.Head && 1115if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1136if (Method == HttpMethod.Head && _responseBytesWritten > 0) 1259Method == HttpMethod.Connect && 1307else if (Method == HttpMethod.Connect && Is2xxCode(StatusCode)) 1323return Method != HttpMethod.Head && 1333Method != HttpMethod.Head && 1405if (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] == '*') 360if (Method == HttpMethod.None) 366if (Method == HttpMethod.Custom)
Internal\Http3\Http3Stream.cs (4)
1107if (Method == HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0) 1150if (Method == HttpMethod.Options && path.Length == 1 && path[0] == '*') 1187if (Method == HttpMethod.None) 1193if (Method == HttpMethod.Custom)