15 writes to RequestMessage
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
214response.RequestMessage = request;
Microsoft.Build.Tasks.UnitTests (8)
DownloadFile_Tests.cs (8)
41RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://largedownload/foo.txt") 70RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 104RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 149RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 222RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 296RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 332RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 355RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://unknown/")
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
40RequestMessage = request,
NoRemoteCallNotSeekableHandler.cs (1)
43RequestMessage = request,
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NoRemoteCallHandler.cs (1)
34RequestMessage = request,
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
140RequestMessage = _request,
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
1042RequestMessage = _request,
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
663var response = new HttpResponseMessage() { RequestMessage = request, Content = new HttpConnectionResponseContent() };
34 references to RequestMessage
Aspire.Dashboard.Tests (1)
Integration\FrontendBrowserTokenAuthTests.cs (1)
47Assert.Equal(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.StructuredLogsUrl()), response.RequestMessage!.RequestUri!.PathAndQuery);
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
479var msg = $"Retry #{args.AttemptNumber+1} for '{args.Outcome.Result?.RequestMessage?.RequestUri}'" +
Aspire.Hosting (1)
Dcp\DcpKubernetesClient.cs (1)
72var httpRequest = httpResponse.RequestMessage;
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
479var msg = $"Retry #{args.AttemptNumber+1} for '{args.Outcome.Result?.RequestMessage?.RequestUri}'" +
AuthSamples.FunctionalTests (5)
CookiesTests.cs (1)
40Assert.Equal("http://localhost/account/login?ReturnUrl=%2FHome%2FMyClaims", response.RequestMessage.RequestUri.ToString());
CustomPolicyProviderTests.cs (2)
44Assert.Equal("http://localhost/account/signin?ReturnUrl=%2FHome%2FMinimumAge10", response.RequestMessage.RequestUri.ToString()); 118Assert.Equal("http://localhost/account/signin?ReturnUrl=%2FHome%2FMinimumAge50", response.RequestMessage.RequestUri.ToString());
PathSchemeSelectionTests.cs (1)
53Assert.Equal("http://localhost/account/login?ReturnUrl=%2FHome%2FMyClaims", response.RequestMessage.RequestUri.ToString());
TestAssert.cs (1)
85.Address(response.RequestMessage.RequestUri)
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
20HttpRequestMessage request = httpResponseMessage.RequestMessage;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
28Contract.Assert(httpResponseMessage.RequestMessage != null); 31_httpRequestMessage = httpResponseMessage.RequestMessage;
HeaderPropagationSample (1)
Startup.cs (1)
79foreach (var header in response.RequestMessage.Headers)
Microsoft.AspNetCore.Diagnostics.Tests (1)
StatusCodeMiddlewareTest.cs (1)
68Assert.Equal(expectedQueryString, response.RequestMessage.RequestUri.Query);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\ResponseAssert.cs (1)
33.Address(response.RequestMessage.RequestUri)
Microsoft.AspNetCore.Mvc.Testing (5)
Handlers\CookieContainerHandler.cs (1)
56Container.SetCookies(response.RequestMessage!.RequestUri!, header);
Handlers\RedirectHandler.cs (4)
137Debug.Assert(response.RequestMessage is not null); 142if (!location.IsAbsoluteUri && response.RequestMessage.RequestUri is Uri requestUri) 156redirect.Method = response.RequestMessage.Method; 160foreach (var property in response.RequestMessage.Options)
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
1069if (initialResponse.RequestMessage.Method == HttpMethod.Head && 1070subsequentResponse.RequestMessage.Method == HttpMethod.Head)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
973if (initialResponse.RequestMessage.Method == HttpMethod.Head && 974subsequentResponse.RequestMessage.Method == HttpMethod.Head)
Microsoft.Build.Tasks.Core (1)
DownloadFile.cs (1)
327?? Path.GetFileName(response.RequestMessage.RequestUri.LocalPath); // Otherwise attempt to get a file name from the URI
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\CookieHelper.cs (3)
19Debug.Assert(response.RequestMessage != null && response.RequestMessage.RequestUri != null); 21Uri requestUri = response.RequestMessage.RequestUri;
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
657if (statusCode == 200 && _response.RequestMessage!.IsExtendedConnectRequest)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
2084Debug.Assert(response.RequestMessage == _currentRequest);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
136TraceError($"Insecure https to http redirect from '{requestUri}' to '{location}' blocked.", response.RequestMessage!.GetHashCode());
System.Net.Requests (2)
System\Net\HttpWebResponse.cs (2)
225return _httpResponseMessage.RequestMessage!.Method.Method; 237return _httpResponseMessage.RequestMessage!.RequestUri!;
Templates.Mvc.Tests (1)
BlazorTemplateTest.cs (1)
112Assert.Equal("/Account/Login?ReturnUrl=%2Fauth", response.RequestMessage.RequestUri.PathAndQuery);