33 references to HttpRequestFeature
Microsoft.AspNetCore.Hosting.Tests (10)
HostingApplicationDiagnosticsTests.cs (10)
730features.Set<IHttpRequestFeature>(new HttpRequestFeature() 761features.Set<IHttpRequestFeature>(new HttpRequestFeature() 790features.Set<IHttpRequestFeature>(new HttpRequestFeature() 820features.Set<IHttpRequestFeature>(new HttpRequestFeature() 851features.Set<IHttpRequestFeature>(new HttpRequestFeature() 888features.Set<IHttpRequestFeature>(new HttpRequestFeature() 917features.Set<IHttpRequestFeature>(new HttpRequestFeature() 959features.Set<IHttpRequestFeature>(new HttpRequestFeature() 1027features.Set<IHttpRequestFeature>(new HttpRequestFeature() 1091features.Set<IHttpRequestFeature>(new HttpRequestFeature());
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
54Features.Set<IHttpRequestFeature>(new HttpRequestFeature());
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
716var requestFeature = new HttpRequestFeature
Microsoft.AspNetCore.Http.Tests (18)
DefaultHttpContextTests.cs (2)
153features.Set<IHttpRequestFeature>(new HttpRequestFeature()); 173newFeatures.Set<IHttpRequestFeature>(new HttpRequestFeature());
Features\QueryFeatureTests.cs (16)
13features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "foo=bar" }; 30features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 50features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 67features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 80features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?=value1&=" }; 94features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=valueA&key2=valueB&key1=valueC" }; 109features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=valueA&key2=valueB&key1=valueC&key1=valueD" }; 124features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=&key2=" }; 142features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 155features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D" }; 169features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?=fields+%5BtodoItems%5D" }; 183features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=" }; 197features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=%5B+1+%5D" }; 211features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=%5B+1+%5D&fields+%5BtodoItems%5D=%5B+2+%5D" }; 226features[typeof(IHttpRequestFeature)] = new HttpRequestFeature 245features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key=1&Key=2&key=3&Key=4&KEy=5" };
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
RequestDecompressionMiddlewareBenchmark.cs (1)
56features.Set<IHttpRequestFeature>(new HttpRequestFeature());
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
ResponseCachingBenchmark.cs (1)
87features.Set<IHttpRequestFeature>(new HttpRequestFeature());
Microsoft.AspNetCore.Rewrite.Tests (1)
PatternSegments\ServerProtocolSegmentTests.cs (1)
18context.HttpContext.Features.Set<IHttpRequestFeature>(new HttpRequestFeature { Protocol = "http" });