17 references to Connect
InMemory.FunctionalTests (6)
RequestTargetProcessingTests.cs (2)
94[InlineData(HttpMethod.Connect, "host")] 111var host = method == HttpMethod.Connect
ResponseTests.cs (3)
612HttpMethod.Connect, 654=> await AttemptingToWriteNonzeroContentLengthFails(statusCode, HttpMethod.Connect).ConfigureAwait(true); 668=> await AttemptingToWriteZeroContentLength_ContentLengthRemoved(statusCode, HttpMethod.Connect).ConfigureAwait(true);
src\Servers\Kestrel\shared\test\HttpParsingData.cs (1)
368data.Add($"{method} www.example.com:80 HTTP/1.1\r\n", (int)HttpMethod.Connect);
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\Http1Connection.cs (1)
466if (method != HttpMethod.Connect)
Internal\Http\HttpProtocol.cs (1)
1272else if (Method == HttpMethod.Connect && Is2xxCode(StatusCode))
Internal\Http2\Http2Stream.cs (1)
260if (Method == HttpMethod.Connect)
Internal\Http3\Http3Stream.cs (1)
1002if (Method == HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0)
Internal\Infrastructure\HttpUtilities.cs (1)
349HttpMethod.Connect
Internal\Infrastructure\HttpUtilities.Generated.cs (2)
48SetKnownMethod(_mask8Chars, _httpConnectMethodLong, HttpMethod.Connect, 7); 51_methodNames[(byte)HttpMethod.Connect] = HttpMethods.Connect;
KestrelBadHttpRequestException.cs (1)
77ex = new BadHttpRequestException(CoreStrings.BadRequest_MethodNotAllowed, StatusCodes.Status405MethodNotAllowed, reason, HttpMethod.Connect);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
HttpUtilitiesTest.cs (1)
16[InlineData("CONNECT / HTTP/1.1", true, "CONNECT", (int)HttpMethod.Connect)]
KnownStringsTests.cs (1)
55CreateTestDataEntry(_methodConnect, (int)HttpMethod.Connect, 7, true),
src\Servers\Kestrel\shared\test\HttpParsingData.cs (1)
368data.Add($"{method} www.example.com:80 HTTP/1.1\r\n", (int)HttpMethod.Connect);