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