8 writes to Method
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
309
Method
= method;
Internal\Http\HttpProtocol.cs (1)
354
Method
= HttpMethod.None;
Internal\Http2\Http2Stream.cs (3)
340
Method
= HttpUtilities.GetKnownMethod(_methodText);
689
Method
= HttpMethod.Get;
694
Method
= HttpMethod.Post;
Internal\Http3\Http3Stream.cs (3)
247
Method
= HttpMethod.Get;
252
Method
= HttpMethod.Post;
1062
Method
= HttpUtilities.GetKnownMethod(_methodText);
20 references to Method
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\Http1MessageBody.cs (3)
203
if (httpVersion == HttpVersion.Http10 && (context.
Method
== HttpMethod.Post || context.
Method
== HttpMethod.Put))
205
KestrelBadHttpRequestException.Throw(RequestRejectionReason.LengthRequiredHttp10, context.
Method
);
Internal\Http\HttpProtocol.cs (7)
906
if (
Method
!= HttpMethod.Head &&
1085
if (
Method
== HttpMethod.Head && _responseBytesWritten > 0)
1106
if (
Method
== HttpMethod.Head && _responseBytesWritten > 0)
1265
else if (
Method
== HttpMethod.Connect && Is2xxCode(StatusCode))
1281
return
Method
!= HttpMethod.Head &&
1291
Method
!= HttpMethod.Head &&
1363
if (
Method
!= HttpMethod.Head)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43
_methodText = HttpUtilities.MethodToString(
Method
) ?? string.Empty;
Internal\Http2\Http2Stream.cs (5)
238
if (
Method
== HttpMethod.None && !TryValidateMethod())
248
if (
Method
== HttpMethod.Connect)
312
if (
Method
== HttpMethod.Options && path.Length == 1 && path[0] == '*')
342
if (
Method
== HttpMethod.None)
348
if (
Method
== HttpMethod.Custom)
Internal\Http3\Http3Stream.cs (4)
991
if (
Method
== HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0)
1034
if (
Method
== HttpMethod.Options && path.Length == 1 && path[0] == '*')
1064
if (
Method
== HttpMethod.None)
1070
if (
Method
== HttpMethod.Custom)