16 references to GetReasonPhrase
Diagnostics.FunctionalTests (1)
StatusCodeSampleTest.cs (1)
66var statusCodeReasonPhrase = ReasonPhrases.GetReasonPhrase(httpStatusCode);
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
367var badRequestReasonPhrase = WebUtilities.ReasonPhrases.GetReasonPhrase(badHttpRequestException.StatusCode);
StatusCodePage\StatusCodePagesOptions.cs (1)
45var reasonPhrase = ReasonPhrases.GetReasonPhrase(httpStatusCode);
Microsoft.AspNetCore.Http (2)
DefaultHttpContext.cs (1)
247return HttpContextDebugFormatter.ContextToString(this, ReasonPhrases.GetReasonPhrase(Response.StatusCode));
Internal\DefaultHttpResponse.cs (1)
170return HttpContextDebugFormatter.ResponseToString(this, ReasonPhrases.GetReasonPhrase(StatusCode));
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
197var reasonPhrase = ReasonPhrases.GetReasonPhrase(status);
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
197var reasonPhrase = ReasonPhrases.GetReasonPhrase(status);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1452Assert.Equal(title ?? ReasonPhrases.GetReasonPhrase((int)status), problem.Title);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
197var reasonPhrase = ReasonPhrases.GetReasonPhrase(status);
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (1)
361Description = apiResponseType.Description ?? ReasonPhrases.GetReasonPhrase(statusCode),
Services\OpenApiGenerator.cs (1)
218=> ReasonPhrases.GetReasonPhrase(statusCode);
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.cs (1)
570var reasonPhrase = string.IsNullOrEmpty(ReasonPhrase) ? ReasonPhrases.GetReasonPhrase(StatusCode) : ReasonPhrase;
Core\IISHttpContext.FeatureCollection.cs (1)
360ReasonPhrase = ReasonPhrases.GetReasonPhrase(StatusCodes.Status101SwitchingProtocols);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
83var reasonPhrase = WebUtilities.ReasonPhrases.GetReasonPhrase(statusCode); 170if (candidate is not null && (string.IsNullOrEmpty(reasonPhrase) || WebUtilities.ReasonPhrases.GetReasonPhrase(statusCode) == reasonPhrase))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
ReasonPhrasesTests.cs (1)
30var reasonPhrase = WebUtilities.ReasonPhrases.GetReasonPhrase(statusCode);