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