17 references to Connect
InMemory.FunctionalTests (6)
RequestTargetProcessingTests.cs (2)
94
[InlineData(HttpMethod.
Connect
, "host")]
111
var host = method == HttpMethod.
Connect
ResponseTests.cs (3)
612
HttpMethod.
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)
368
data.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)
466
if (method != HttpMethod.
Connect
)
Internal\Http\HttpProtocol.cs (1)
1272
else if (Method == HttpMethod.
Connect
&& Is2xxCode(StatusCode))
Internal\Http2\Http2Stream.cs (1)
260
if (Method == HttpMethod.
Connect
)
Internal\Http3\Http3Stream.cs (1)
1002
if (Method == HttpMethod.
Connect
&& HttpRequestHeaders.HeaderProtocol.Count == 0)
Internal\Infrastructure\HttpUtilities.cs (1)
349
HttpMethod.
Connect
Internal\Infrastructure\HttpUtilities.Generated.cs (2)
48
SetKnownMethod(_mask8Chars, _httpConnectMethodLong, HttpMethod.
Connect
, 7);
51
_methodNames[(byte)HttpMethod.
Connect
] = HttpMethods.Connect;
KestrelBadHttpRequestException.cs (1)
77
ex = 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)
55
CreateTestDataEntry(_methodConnect, (int)HttpMethod.
Connect
, 7, true),
src\Servers\Kestrel\shared\test\HttpParsingData.cs (1)
368
data.Add($"{method} www.example.com:80 HTTP/1.1\r\n", (int)HttpMethod.
Connect
);