13 implementations of Get
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.Extensions.Features (1)
873 references to Get
Aspire.Dashboard (3)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (1)
BasicWebSite (2)
Binding.Http.IntegrationTests (1)
CookiePolicySample (3)
ExceptionHandlerSample (1)
http2cat (1)
Http2SampleApp (1)
Identity.DefaultUI.WebSite (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.Tests (8)
IISExpress.FunctionalTests (1)
IISSample (1)
InMemory.FunctionalTests (191)
InProcessWebSite (19)
Interop.FunctionalTests (17)
Kestrel.SampleApp (5)
LocalizationSample (1)
LocalizationWebsite (1)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.Authentication (3)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.Authorization.Policy (2)
Microsoft.AspNetCore.Authorization.Test (7)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.CookiePolicy.Test (21)
Microsoft.AspNetCore.Diagnostics (6)
Microsoft.AspNetCore.Diagnostics.Tests (6)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Tests (11)
Microsoft.AspNetCore.Http (6)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections (8)
Microsoft.AspNetCore.Http.Connections.Tests (28)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Tests (24)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (7)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.HttpsPolicy.Tests (6)
Microsoft.AspNetCore.Localization.Routing.Tests (3)
Microsoft.AspNetCore.Localization.Tests (17)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Core.Test (5)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (5)
Microsoft.AspNetCore.RequestDecompression (1)
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.ResponseCaching.Tests (10)
Microsoft.AspNetCore.ResponseCompression (3)
Microsoft.AspNetCore.ResponseCompression.Tests (13)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Routing.Tests (10)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (120)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
Microsoft.AspNetCore.Server.IISIntegration (2)
Microsoft.AspNetCore.Server.IISIntegration.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (32)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (13)
164Assert.NotNull(_collection.Get<IHttpMinResponseDataRateFeature>());
182Assert.Same(_collection.Get<IHttpRequestFeature>(), _collection[typeof(IHttpRequestFeature)]);
183Assert.Same(_collection.Get<IHttpRequestBodyDetectionFeature>(), _collection[typeof(IHttpRequestBodyDetectionFeature)]);
184Assert.Same(_collection.Get<IHttpResponseFeature>(), _collection[typeof(IHttpResponseFeature)]);
185Assert.Same(_collection.Get<IHttpResponseBodyFeature>(), _collection[typeof(IHttpResponseBodyFeature)]);
186Assert.Same(_collection.Get<IRequestBodyPipeFeature>(), _collection[typeof(IRequestBodyPipeFeature)]);
187Assert.Same(_collection.Get<IHttpRequestIdentifierFeature>(), _collection[typeof(IHttpRequestIdentifierFeature)]);
188Assert.Same(_collection.Get<IHttpRequestLifetimeFeature>(), _collection[typeof(IHttpRequestLifetimeFeature)]);
189Assert.Same(_collection.Get<IHttpConnectionFeature>(), _collection[typeof(IHttpConnectionFeature)]);
190Assert.Same(_collection.Get<IHttpMaxRequestBodySizeFeature>(), _collection[typeof(IHttpMaxRequestBodySizeFeature)]);
191Assert.Same(_collection.Get<IHttpMinRequestBodyDataRateFeature>(), _collection[typeof(IHttpMinRequestBodyDataRateFeature)]);
192Assert.Same(_collection.Get<IHttpMinResponseDataRateFeature>(), _collection[typeof(IHttpMinResponseDataRateFeature)]);
193Assert.Same(_collection.Get<IHttpBodyControlFeature>(), _collection[typeof(IHttpBodyControlFeature)]);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (30)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Session.Tests (2)
Microsoft.AspNetCore.SignalR (2)
Microsoft.AspNetCore.SignalR.Client.Core (6)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Core (8)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.TestHost.Tests (47)
ClientHandlerTests.cs (31)
26Assert.True(features.Get<IHttpRequestLifetimeFeature>().RequestAborted.CanBeCanceled);
27Assert.Equal(HttpProtocol.Http11, features.Get<IHttpRequestFeature>().Protocol);
28Assert.Equal("GET", features.Get<IHttpRequestFeature>().Method);
29Assert.Equal("https", features.Get<IHttpRequestFeature>().Scheme);
30Assert.Equal("/api/a%2Fb c", features.Get<IHttpRequestFeature>().Path);
31Assert.NotNull(features.Get<IHttpRequestFeature>().Body);
32Assert.NotNull(features.Get<IHttpRequestFeature>().Headers);
33Assert.NotNull(features.Get<IHttpResponseFeature>().Headers);
34Assert.NotNull(features.Get<IHttpResponseBodyFeature>().Stream);
35Assert.Equal(200, features.Get<IHttpResponseFeature>().StatusCode);
36Assert.Null(features.Get<IHttpResponseFeature>().ReasonPhrase);
37Assert.Equal("example.com", features.Get<IHttpRequestFeature>().Headers["host"]);
38Assert.NotNull(features.Get<IHttpRequestLifetimeFeature>());
61Assert.Null(context.Features.Get<IHttpResponseFeature>().ReasonPhrase);
75Assert.True(features.Get<IHttpRequestLifetimeFeature>().RequestAborted.CanBeCanceled);
76Assert.Equal(HttpProtocol.Http11, features.Get<IHttpRequestFeature>().Protocol);
77Assert.Equal("GET", features.Get<IHttpRequestFeature>().Method);
78Assert.Equal("https", features.Get<IHttpRequestFeature>().Scheme);
79Assert.Equal("/A/Path", features.Get<IHttpRequestFeature>().PathBase);
80Assert.Equal("/and/file.txt", features.Get<IHttpRequestFeature>().Path);
81Assert.Equal("?and=query", features.Get<IHttpRequestFeature>().QueryString);
82Assert.NotNull(features.Get<IHttpRequestFeature>().Body);
83Assert.NotNull(features.Get<IHttpRequestFeature>().Headers);
84Assert.NotNull(features.Get<IHttpResponseFeature>().Headers);
85Assert.NotNull(features.Get<IHttpResponseBodyFeature>().Stream);
86Assert.Equal(200, features.Get<IHttpResponseFeature>().StatusCode);
87Assert.Null(features.Get<IHttpResponseFeature>().ReasonPhrase);
88Assert.Equal("example.com", features.Get<IHttpRequestFeature>().Headers["host"]);
89Assert.NotNull(features.Get<IHttpRequestLifetimeFeature>());
267Assert.Equal(IPAddress.Parse("1.1.1.1"), features.Get<IHttpConnectionFeature>().RemoteIpAddress);
282Assert.Equal("?and=something", features.Get<IHttpRequestFeature>().QueryString);
Microsoft.AspNetCore.Testing (1)
Microsoft.AspNetCore.Tests (2)
Microsoft.AspNetCore.WebSockets (4)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.Extensions.Features (2)
Microsoft.Extensions.ServiceDiscovery (1)
Mvc.RoutingWebSite (1)
NativeIISSample (3)
OutputCachingSample (1)
ResponseCompressionSample (1)
SignalR.Client.FunctionalTestApp (2)
SignalRSamples (1)
SocialWeather (1)
Sockets.BindTests (6)
Sockets.FunctionalTests (11)
StartRequestDelegateUrlApp (1)
StartRouteBuilderUrlApp (1)
StartWithIApplicationBuilderUrlApp (1)
StatusCodePagesSample (1)
TestProject.ServiceA (1)
VersioningWebSite (1)
Wasm.Performance.Driver (1)