84 references to HttpResponseMessage
Microsoft.Arcade.Common (2)
ArcadeHttpMessageHandler.cs (2)
24return Task.FromResult(new HttpResponseMessage() 31return Task.FromResult(new HttpResponseMessage()
Microsoft.AspNetCore.Authentication.Test (10)
OpenIdConnect\OpenIdConnectChallengeTests.cs (3)
976return new HttpResponseMessage() 984return new HttpResponseMessage() { Content = new StringContent("{ }", Encoding.ASCII, "application/json") }; 994return new HttpResponseMessage() { Content = new StringContent("{ \"request_uri\": \"my_reference_value\", \"expires_in\": 60}", Encoding.ASCII, "application/json") };
OpenIdConnect\OpenIdConnectEventTests.cs (2)
1395return Task.FromResult(new HttpResponseMessage() 1403return Task.FromResult(new HttpResponseMessage() { Content = new StringContent("{ }", Encoding.ASCII, "application/json") });
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (2)
1390return Task.FromResult(new HttpResponseMessage() 1398return Task.FromResult(new HttpResponseMessage() { Content = new StringContent("{ }", Encoding.ASCII, "application/json") });
OpenIdConnect\TestSettings.cs (1)
340return new HttpResponseMessage()
WsFederation\WsFederationTest.cs (1)
453var newResponse = new HttpResponseMessage() { Content = new StringContent(metadata, Encoding.UTF8, "text/xml") };
WsFederation\WsFederationTest_Handler.cs (1)
449var newResponse = new HttpResponseMessage() { Content = new StringContent(metadata, Encoding.UTF8, "text/xml") };
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (1)
235return Task.FromResult(new HttpResponseMessage());
HeaderPropagationMessageHandlerTest.cs (1)
269return Task.FromResult(new HttpResponseMessage());
Microsoft.AspNetCore.SignalR.Client.Tests (10)
ServerSentEventsTransportTests.cs (10)
44return new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }; 91return Task.FromResult(new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }); 144return new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }; 197return new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }; 250return new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }; 277return new HttpResponseMessage { Content = new StringContent("data: 3:abc\r\n\r\n") }; 325return new HttpResponseMessage { Content = new StreamContent(mockStream.Object) }; 366return new HttpResponseMessage { Content = new StringContent(string.Empty) }; 393return new HttpResponseMessage { Content = new StringContent(string.Empty) }; 478return new HttpResponseMessage { Content = new StreamContent(new OneAtATimeStream(messageParts)) };
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
27.ReturnsAsync(new HttpResponseMessage
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
192var response = new HttpResponseMessage();
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
37var response = new HttpResponseMessage
NoRemoteCallNotSeekableHandler.cs (1)
40var response = new HttpResponseMessage
Microsoft.Extensions.Http.Diagnostics.Tests (29)
Latency\Internal\HttpClientLatencyLogEnricherTest.cs (2)
45using HttpResponseMessage httpResponseMessage = new(); 65using HttpResponseMessage httpResponseMessage = new();
Logging\HttpClientLoggerTest.cs (9)
55using var httpResponseMessage = new HttpResponseMessage { StatusCode = responseCode }; 193using var httpResponseMessage = new HttpResponseMessage 287using var httpResponseMessage = new HttpResponseMessage 393using var httpResponseMessage = new HttpResponseMessage 489using var httpResponseMessage = new HttpResponseMessage 603using var httpResponseMessage = new HttpResponseMessage 873using var httpResponseMessage = new HttpResponseMessage 983using var httpResponseMessage = new HttpResponseMessage(); 1002using var httpResponseMessage = new HttpResponseMessage();
Logging\HttpHeadersReaderTest.cs (4)
24using var httpResponse = new HttpResponseMessage(); 42using var httpResponse = new HttpResponseMessage(); 145using var httpResponse = new HttpResponseMessage { Content = responseContent }; 178using var httpResponse = new HttpResponseMessage();
Logging\HttpRequestReaderTest.cs (7)
90using var httpResponseMessage = new HttpResponseMessage 150using var httpResponseMessage = new HttpResponseMessage 219using var httpResponseMessage = new HttpResponseMessage 294using var httpResponseMessage = new HttpResponseMessage 424using var httpResponseMessage = new HttpResponseMessage 491using var httpResponseMessage = new HttpResponseMessage 559using var httpResponseMessage = new HttpResponseMessage
Logging\HttpResponseBodyReaderTest.cs (6)
40using var httpResponse = new HttpResponseMessage 58using var httpResponse = new HttpResponseMessage 83using var httpResponse = new HttpResponseMessage 103using var httpResponse = new HttpResponseMessage 127using var httpResponse = new HttpResponseMessage 152using var httpResponse = new HttpResponseMessage
Logging\Internal\NoRemoteCallHandler.cs (1)
31var response = new HttpResponseMessage
Microsoft.Extensions.Http.Polly.Tests (10)
PolicyHttpMessageHandlerTest.cs (10)
29var expected = new HttpResponseMessage(); 74var expected = new HttpResponseMessage(); 111var firstResponse = new HttpResponseMessage() 116var expected = new HttpResponseMessage(); 161var firstResponse = new HttpResponseMessage() 166var expected = new HttpResponseMessage(); 211var expected = new HttpResponseMessage(); 241var expected = new HttpResponseMessage(); 279var expected = new HttpResponseMessage(); 306var expected = new HttpResponseMessage();
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
NoRemoteCallHandler.cs (1)
18_response = new HttpResponseMessage
Microsoft.Extensions.Http.Resilience.Tests (13)
Internal\RequestMessageSnapshotStrategyTests.cs (1)
29return new ValueTask<HttpResponseMessage>(new HttpResponseMessage());
Internal\RetryAfterHelperTests.cs (4)
19using var response = new HttpResponseMessage(); 31using var response = new HttpResponseMessage(); 44using var response = new HttpResponseMessage(); 58using var response = new HttpResponseMessage();
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
59using var response = new HttpResponseMessage { StatusCode = statusCode };
Polly\HttpClientResiliencePredicatesTests.cs (1)
55var response = new HttpResponseMessage { StatusCode = statusCode };
Polly\HttpRetryStrategyOptionsTests.cs (4)
58var response = new HttpResponseMessage { StatusCode = statusCode }; 83var response = new HttpResponseMessage { StatusCode = statusCode }; 102using var responseMessage = new HttpResponseMessage(); 130using var responseMessage = new HttpResponseMessage
Resilience\ResilienceHandlerTest.cs (2)
112return Task.FromResult(new HttpResponseMessage { StatusCode = HttpStatusCode.Created }); 137return Task.FromResult(new HttpResponseMessage { StatusCode = HttpStatusCode.Created });
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
137_response = new HttpResponseMessage()
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
1039_response = new HttpResponseMessage()
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
663var response = new HttpResponseMessage() { RequestMessage = request, Content = new HttpConnectionResponseContent() };