3 writes to ReasonPhrase
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
337this.HttpResponseMessage.ReasonPhrase = value;
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
213response.ReasonPhrase = httpContext.Features.GetRequiredFeature<IHttpResponseFeature>().ReasonPhrase;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1115response.ReasonPhrase = HttpRuleParser.DefaultHttpEncoding.GetString(reasonBytes);
28 references to ReasonPhrase
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
480$" due to StatusCode: {(int?)args.Outcome.Result?.StatusCode} ReasonPhrase: '{args.Outcome.Result?.ReasonPhrase}'";
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
480$" due to StatusCode: {(int?)args.Outcome.Result?.StatusCode} ReasonPhrase: '{args.Outcome.Result?.ReasonPhrase}'";
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
149string statusDescription = response.ReasonPhrase;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
333string statusDescription = _httpResponseMessage.ReasonPhrase; 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(_httpResponseMessage.StatusCode + " " + _httpResponseMessage.ReasonPhrase));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
332return this.HttpResponseMessage.ReasonPhrase;
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
547Assert.Equal("Internal Server Error", response.ReasonPhrase); 570Assert.Equal(expectedReason, response.ReasonPhrase);
IIS.ShadowCopy.Tests (4)
ShadowCopyTests.cs (4)
225Assert.True(response.ReasonPhrase == "Application Shutting Down" || response.ReasonPhrase == "Server has been shutdown"); 267Assert.True(response.ReasonPhrase == "Application Shutting Down" || response.ReasonPhrase == "Server has been shutdown");
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
547Assert.Equal("Internal Server Error", response.ReasonPhrase); 570Assert.Equal(expectedReason, response.ReasonPhrase);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\MiddleWareTests.cs (1)
696Assert.Equal("reason", response.ReasonPhrase);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
ResponseTests.cs (4)
35Assert.Equal("OK", response.ReasonPhrase); 54Assert.Equal("Created", response.ReasonPhrase); 74Assert.Equal("CustomReasonPhrase", response.ReasonPhrase); 92Assert.Equal(string.Empty, response.ReasonPhrase);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\LoggingHandler.cs (1)
24_logger.LogDebug("Received {statusCode} {reasonPhrase} {url}", response.StatusCode, response.ReasonPhrase, request.RequestUri);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
91_logger.LogWarning("Non-successful response when pinging {url}: {statusCode} {reasonPhrase}", deployment.ApplicationBaseUri, resp.StatusCode, resp.ReasonPhrase);
Microsoft.DotNet.Arcade.Sdk (2)
src\DownloadFile.cs (2)
160httpResponse.ReasonPhrase.StartsWith("The requested URI does not represent any resource on the server.", StringComparison.OrdinalIgnoreCase)) 162Log.LogMessage($"Problems downloading file from '{uri}'. Does the resource exist on the storage? {httpResponse.StatusCode} : {httpResponse.ReasonPhrase}");
Microsoft.DotNet.Helix.Sdk (1)
AzureDevOpsTask.cs (1)
132var message = $"Request to {req.RequestUri} returned failed status {statusCodeValue} {res.ReasonPhrase}\n\n{(res.Content != null ? await res.Content.ReadAsStringAsync() : "")}";
System.Net.Http (3)
System\Net\Http\HttpResponseMessage.cs (3)
168string.IsNullOrWhiteSpace(ReasonPhrase) ? SR.net_http_message_not_success_statuscode : SR.net_http_message_not_success_statuscode_reason, 170ReasonPhrase), 186sb.Append(ReasonPhrase ?? "<null>");
System.Net.Requests (1)
System\Net\HttpWebResponse.cs (1)
255return _httpResponseMessage.ReasonPhrase ?? string.Empty;