30 references to Custom
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
325
if (method == HttpMethod.
Custom
)
Internal\Http\HttpParser.cs (1)
87
if (method == HttpMethod.
Custom
)
Internal\Http2\Http2Stream.cs (1)
360
if (Method == HttpMethod.
Custom
)
Internal\Http3\Http3Stream.cs (1)
1081
if (Method == HttpMethod.
Custom
)
Internal\Infrastructure\HttpUtilities.cs (4)
42
var invalidHttpMethod = new Tuple<ulong, ulong, HttpMethod, int>(_mask8Chars, 0ul, HttpMethod.
Custom
, 0);
210
return method != HttpMethod.
Custom
;
242
return HttpMethod.
Custom
;
293
return HttpMethod.
Custom
;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
HttpParserTests.cs (2)
896
Method = method != HttpMethod.
Custom
? HttpUtilities.MethodToString(method) : customMethod.GetAsciiString();
914
Method = method != HttpMethod.
Custom
? HttpUtilities.MethodToString(method) : customMethod.GetAsciiString();
HttpUtilitiesTest.cs (8)
25
[InlineData("GET/ HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
26
[InlineData("get / HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
27
[InlineData("GOT / HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
28
[InlineData("ABC / HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
29
[InlineData("PO / HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
30
[InlineData("PO ST / HTTP/1.1", false, null, (int)HttpMethod.
Custom
)]
31
[InlineData("short ", false, null, (int)HttpMethod.
Custom
)]
42
if (knownMethod != HttpMethod.
Custom
)
KnownStringsTests.cs (12)
57
CreateTestDataEntry(_invalidMethod1, (int)HttpMethod.
Custom
, 0, false),
58
CreateTestDataEntry(_invalidMethod2, (int)HttpMethod.
Custom
, 0, false),
59
CreateTestDataEntry(_invalidMethod3, (int)HttpMethod.
Custom
, 0, false),
60
CreateTestDataEntry(_invalidMethod4, (int)HttpMethod.
Custom
, 0, false),
61
CreateTestDataEntry(_invalidMethod5, (int)HttpMethod.
Custom
, 0, false),
62
CreateTestDataEntry(_invalidMethod6, (int)HttpMethod.
Custom
, 0, false),
63
CreateTestDataEntry(_invalidMethod7, (int)HttpMethod.
Custom
, 0, false),
64
CreateTestDataEntry(_invalidMethod8, (int)HttpMethod.
Custom
, 0, false),
65
CreateTestDataEntry(_invalidMethod9, (int)HttpMethod.
Custom
, 0, false),
66
CreateTestDataEntry(_invalidMethod10, (int)HttpMethod.
Custom
, 0, false),
67
CreateTestDataEntry(_invalidMethod11, (int)HttpMethod.
Custom
, 0, false),
68
CreateTestDataEntry(_invalidMethod12, (int)HttpMethod.
Custom
, 0, false),