30 references to Custom
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
325if (method == HttpMethod.Custom)
Internal\Http\HttpParser.cs (1)
87if (method == HttpMethod.Custom)
Internal\Http2\Http2Stream.cs (1)
360if (Method == HttpMethod.Custom)
Internal\Http3\Http3Stream.cs (1)
1081if (Method == HttpMethod.Custom)
Internal\Infrastructure\HttpUtilities.cs (4)
42var invalidHttpMethod = new Tuple<ulong, ulong, HttpMethod, int>(_mask8Chars, 0ul, HttpMethod.Custom, 0); 210return method != HttpMethod.Custom; 242return HttpMethod.Custom; 293return HttpMethod.Custom;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
HttpParserTests.cs (2)
896Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.GetAsciiString(); 914Method = 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)] 42if (knownMethod != HttpMethod.Custom)
KnownStringsTests.cs (12)
57CreateTestDataEntry(_invalidMethod1, (int)HttpMethod.Custom, 0, false), 58CreateTestDataEntry(_invalidMethod2, (int)HttpMethod.Custom, 0, false), 59CreateTestDataEntry(_invalidMethod3, (int)HttpMethod.Custom, 0, false), 60CreateTestDataEntry(_invalidMethod4, (int)HttpMethod.Custom, 0, false), 61CreateTestDataEntry(_invalidMethod5, (int)HttpMethod.Custom, 0, false), 62CreateTestDataEntry(_invalidMethod6, (int)HttpMethod.Custom, 0, false), 63CreateTestDataEntry(_invalidMethod7, (int)HttpMethod.Custom, 0, false), 64CreateTestDataEntry(_invalidMethod8, (int)HttpMethod.Custom, 0, false), 65CreateTestDataEntry(_invalidMethod9, (int)HttpMethod.Custom, 0, false), 66CreateTestDataEntry(_invalidMethod10, (int)HttpMethod.Custom, 0, false), 67CreateTestDataEntry(_invalidMethod11, (int)HttpMethod.Custom, 0, false), 68CreateTestDataEntry(_invalidMethod12, (int)HttpMethod.Custom, 0, false),