5 implementations of IHttpResponseTrailersFeature
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
36IHttpResponseTrailersFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
36IHttpResponseTrailersFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
16IHttpResponseTrailersFeature,
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
15IHttpResponseTrailersFeature
Microsoft.AspNetCore.TestHost (1)
ResponseTrailersFeature.cs (1)
9internal sealed class ResponseTrailersFeature : IHttpResponseTrailersFeature
79 references to IHttpResponseTrailersFeature
InMemory.FunctionalTests (51)
Http2\Http2ConnectionTests.cs (2)
331var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>();
Http2\Http2StreamTests.cs (19)
2310var trailers = context.Features.Get<IHttpResponseTrailersFeature>().Trailers; 2473Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag"); 2474Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Tag"); 2516context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag"; 2517context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Accept"; 4748Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4804Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4872Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4926Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4988Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5047Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5168Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5242Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5318Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5389Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5457Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5539Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5621Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5705Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly);
Http3\Http3ConnectionTests.cs (2)
566var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>();
Http3\Http3StreamTests.cs (28)
830var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>(); 860var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>(); 894var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>(); 954var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>(); 986var trailersFeature = context.Features.Get<IHttpResponseTrailersFeature>(); 1017Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag"); 1018Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Tag"); 1048context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag"; 1049context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Accept"; 1144Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1193Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1247Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1294Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1343Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1395Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1495Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1550Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1607Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1665Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1720Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1781Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1843Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1908Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly);
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (2)
1344var feature = context.Features.Get<IHttpResponseTrailersFeature>();
Microsoft.AspNetCore.Http.Abstractions (3)
Extensions\ResponseTrailerExtensions.cs (2)
33var feature = response.HttpContext.Features.Get<IHttpResponseTrailersFeature>(); 46var feature = response.HttpContext.Features.Get<IHttpResponseTrailersFeature>();
HttpResponse.cs (1)
173var feature = _response.HttpContext.Features.Get<IHttpResponseTrailersFeature>();
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingFields.cs (1)
119/// Flag for logging the HTTP Response <see cref="IHttpResponseTrailersFeature.Trailers"/>.
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestContext.FeatureCollection.cs (2)
385internal IHttpResponseTrailersFeature? GetResponseTrailersFeature() 609IHeaderDictionary IHttpResponseTrailersFeature.Trailers
StandardFeatureCollection.cs (1)
30{ typeof(IHttpResponseTrailersFeature), ctx => ctx.GetResponseTrailersFeature() },
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.FeatureCollection.cs (2)
459internal IHttpResponseTrailersFeature? GetResponseTrailersFeature() 469IHeaderDictionary IHttpResponseTrailersFeature.Trailers
Core\IISHttpContext.Features.cs (1)
30private static readonly Type IHttpResponseTrailersFeature = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpResponseTrailersFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\HttpProtocol.Generated.cs (9)
69internal protected IHttpResponseTrailersFeature? _currentIHttpResponseTrailersFeature; 264else if (key == typeof(IHttpResponseTrailersFeature)) 416else if (key == typeof(IHttpResponseTrailersFeature)) 418_currentIHttpResponseTrailersFeature = (IHttpResponseTrailersFeature?)value; 570else if (typeof(TFeature) == typeof(IHttpResponseTrailersFeature)) 572feature = Unsafe.As<IHttpResponseTrailersFeature?, TFeature?>(ref _currentIHttpResponseTrailersFeature); 730else if (typeof(TFeature) == typeof(IHttpResponseTrailersFeature)) 732_currentIHttpResponseTrailersFeature = Unsafe.As<TFeature?, IHttpResponseTrailersFeature?>(ref feature); 880yield return new KeyValuePair<Type, object>(typeof(IHttpResponseTrailersFeature), _currentIHttpResponseTrailersFeature);
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
24IHeaderDictionary IHttpResponseTrailersFeature.Trailers
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
19IHeaderDictionary IHttpResponseTrailersFeature.Trailers
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
138public IHttpResponseTrailersFeature Get_IHttpResponseTrailersFeature() 140return _collection.Get<IHttpResponseTrailersFeature>();
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (2)
197var responseTrailersFeature = context.Features.Get<IHttpResponseTrailersFeature>();
HttpContextBuilder.cs (1)
55_httpContext.Features.Set<IHttpResponseTrailersFeature>(_responseTrailersFeature);