12 implementations of ReasonPhrase
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1408public string ReasonPhrase { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpResponseFeature.cs (1)
25public string? ReasonPhrase { get; set; }
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
3715public string? ReasonPhrase { get; set; }
ResponseExtensionTests.cs (1)
59public string ReasonPhrase { get; set; }
Microsoft.AspNetCore.Http.Tests (3)
ApplicationBuilderTests.cs (1)
179public string ReasonPhrase { get; set; }
DefaultHttpContextTests.cs (1)
431public string ReasonPhrase { get; set; }
Internal\DefaultHttpResponseTests.cs (1)
195public string ReasonPhrase { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
141string IHttpResponseFeature.ReasonPhrase
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
475string? IHttpResponseFeature.ReasonPhrase
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
170string? IHttpResponseFeature.ReasonPhrase
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
130string? IHttpResponseFeature.ReasonPhrase
Microsoft.AspNetCore.TestHost (1)
ResponseFeature.cs (1)
48public string? ReasonPhrase
7 writes to ReasonPhrase
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
337ctx.Features.Get<IHttpResponseFeature>().ReasonPhrase = "Set Response"; 393feature.ReasonPhrase = ctx.Request.Query["reason"];
Microsoft.AspNetCore.Http.Extensions (1)
ResponseExtensions.cs (1)
27response.HttpContext.Features.GetRequiredFeature<IHttpResponseFeature>().ReasonPhrase = null;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
64{ OwinConstants.ResponseReasonPhrase, new FeatureMap<IHttpResponseFeature>(feature => feature.ReasonPhrase, (feature, value) => feature.ReasonPhrase = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Rewrite (1)
UrlActions\CustomResponseAction.cs (1)
29context.HttpContext.Features.GetRequiredFeature<IHttpResponseFeature>().ReasonPhrase = StatusReason;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseTests.cs (1)
67httpContext.Features.Get<IHttpResponseFeature>().ReasonPhrase = "CustomReasonPhrase"; // TODO?
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
315Assert.Throws<InvalidOperationException>(() => ((IHttpResponseFeature)_http1Connection).ReasonPhrase = "Reason phrase");
12 references to ReasonPhrase
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
336Assert.Null(ctx.Features.Get<IHttpResponseFeature>().ReasonPhrase); 338Assert.Equal("Set Response", ctx.Features.Get<IHttpResponseFeature>().ReasonPhrase);
Microsoft.AspNetCore.Http (1)
src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
86return response.HttpContext.Features.Get<IHttpResponseFeature>()?.ReasonPhrase ?? reasonPhrase;
Microsoft.AspNetCore.Http.Features (2)
IHttpResponseFeature.cs (2)
37/// <see cref="ReasonPhrase"/>, and <see cref="Headers"/> are now immutable, and 47/// <see cref="ReasonPhrase"/>.
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
64{ OwinConstants.ResponseReasonPhrase, new FeatureMap<IHttpResponseFeature>(feature => feature.ReasonPhrase, (feature, value) => feature.ReasonPhrase = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.TestHost (2)
ClientHandler.cs (1)
213response.ReasonPhrase = httpContext.Features.GetRequiredFeature<IHttpResponseFeature>().ReasonPhrase;
HttpContextBuilder.cs (1)
242ReasonPhrase = serverResponseFeature.ReasonPhrase,
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (3)
36Assert.Null(features.Get<IHttpResponseFeature>().ReasonPhrase); 61Assert.Null(context.Features.Get<IHttpResponseFeature>().ReasonPhrase); 87Assert.Null(features.Get<IHttpResponseFeature>().ReasonPhrase);
HttpContextBuilderTests.cs (1)
44Assert.Null(context.Features.Get<IHttpResponseFeature>().ReasonPhrase);