101 references to GetTypedHeaders
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
202var headers = httpContext.Request.GetTypedHeaders();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
131var headers = context.Request.GetTypedHeaders();
Microsoft.AspNetCore.Http.Extensions.Tests (25)
HeaderDictionaryTypeExtensionsTest.cs (25)
16var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 27var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 38var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 49var result = context.Request.GetTypedHeaders().Get<CacheControlHeaderValue>(HeaderNames.CacheControl); 61var result = context.Request.GetTypedHeaders().Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition); 73var result = context.Request.GetTypedHeaders().Get<RangeConditionHeaderValue>(HeaderNames.IfRange); 85var result = context.Request.GetTypedHeaders().Get<RangeHeaderValue>(HeaderNames.Range); 97var result = context.Request.GetTypedHeaders().Get<EntityTagHeaderValue>(HeaderNames.ETag); 110var result = context.Request.GetTypedHeaders().Get<DateTimeOffset?>(HeaderNames.ETag); 121var result = context.Request.GetTypedHeaders().Get<long?>(HeaderNames.ETag); 132var result = context.Request.GetTypedHeaders().Get<TestHeaderValue>("custom"); 142var result = context.Request.GetTypedHeaders().Get<TestHeaderValue>("custom"); 151var result = context.Request.GetTypedHeaders().Get<TestHeaderValue>("custom"); 161Assert.Throws<NotSupportedException>(() => context.Request.GetTypedHeaders().Get<object>("custom")); 170var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 185var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 196var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 207var result = context.Request.GetTypedHeaders().GetList<StringWithQualityHeaderValue>(HeaderNames.Accept); 219var result = context.Request.GetTypedHeaders().GetList<CookieHeaderValue>(HeaderNames.Cookie); 231var result = context.Request.GetTypedHeaders().GetList<EntityTagHeaderValue>(HeaderNames.ETag); 243var result = context.Request.GetTypedHeaders().GetList<SetCookieHeaderValue>(HeaderNames.SetCookie); 255var results = context.Request.GetTypedHeaders().GetList<TestHeaderValue>("custom"); 266var results = context.Request.GetTypedHeaders().GetList<TestHeaderValue>("custom"); 275var results = context.Request.GetTypedHeaders().GetList<TestHeaderValue>("custom"); 285Assert.Throws<NotSupportedException>(() => context.Request.GetTypedHeaders().GetList<object>("custom"));
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
100var httpRequestHeaders = request.GetTypedHeaders();
Microsoft.AspNetCore.Http.Results.Tests (31)
src\Shared\ResultsTests\FileContentResultTestBase.cs (6)
62var requestHeaders = httpContext.Request.GetTypedHeaders(); 101var requestHeaders = httpContext.Request.GetTypedHeaders(); 140var requestHeaders = httpContext.Request.GetTypedHeaders(); 174var requestHeaders = httpContext.Request.GetTypedHeaders(); 274var requestHeaders = httpContext.Request.GetTypedHeaders(); 308var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\FileStreamResultTestBase.cs (7)
40var requestHeaders = httpContext.Request.GetTypedHeaders(); 82var requestHeaders = httpContext.Request.GetTypedHeaders(); 123var requestHeaders = httpContext.Request.GetTypedHeaders(); 160var requestHeaders = httpContext.Request.GetTypedHeaders(); 266var requestHeaders = httpContext.Request.GetTypedHeaders(); 302var requestHeaders = httpContext.Request.GetTypedHeaders(); 343var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
42var requestHeaders = httpContext.Request.GetTypedHeaders(); 74var requestHeaders = httpContext.Request.GetTypedHeaders(); 106var requestHeaders = httpContext.Request.GetTypedHeaders(); 133var requestHeaders = httpContext.Request.GetTypedHeaders(); 162var requestHeaders = httpContext.Request.GetTypedHeaders(); 188var requestHeaders = httpContext.Request.GetTypedHeaders(); 217var requestHeaders = httpContext.Request.GetTypedHeaders(); 244var requestHeaders = httpContext.Request.GetTypedHeaders(); 298var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
54var requestHeaders = httpContext.Request.GetTypedHeaders(); 92var requestHeaders = httpContext.Request.GetTypedHeaders(); 129var requestHeaders = httpContext.Request.GetTypedHeaders(); 162var requestHeaders = httpContext.Request.GetTypedHeaders(); 197var requestHeaders = httpContext.Request.GetTypedHeaders(); 230var requestHeaders = httpContext.Request.GetTypedHeaders(); 267var requestHeaders = httpContext.Request.GetTypedHeaders(); 298var requestHeaders = httpContext.Request.GetTypedHeaders(); 333var requestHeaders = httpContext.Request.GetTypedHeaders();
Microsoft.AspNetCore.Localization (1)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
27var acceptLanguageHeader = httpContext.Request.GetTypedHeaders().AcceptLanguage;
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
100var httpRequestHeaders = request.GetTypedHeaders();
Microsoft.AspNetCore.Mvc.Core.Test (35)
FileResultHelperTest.cs (4)
249var httpRequestHeaders = httpContext.Request.GetTypedHeaders(); 290var httpRequestHeaders = httpContext.Request.GetTypedHeaders(); 327var httpRequestHeaders = httpContext.Request.GetTypedHeaders(); 363var httpRequestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\FileContentResultTestBase.cs (6)
62var requestHeaders = httpContext.Request.GetTypedHeaders(); 101var requestHeaders = httpContext.Request.GetTypedHeaders(); 140var requestHeaders = httpContext.Request.GetTypedHeaders(); 174var requestHeaders = httpContext.Request.GetTypedHeaders(); 274var requestHeaders = httpContext.Request.GetTypedHeaders(); 308var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\FileStreamResultTestBase.cs (7)
40var requestHeaders = httpContext.Request.GetTypedHeaders(); 82var requestHeaders = httpContext.Request.GetTypedHeaders(); 123var requestHeaders = httpContext.Request.GetTypedHeaders(); 160var requestHeaders = httpContext.Request.GetTypedHeaders(); 266var requestHeaders = httpContext.Request.GetTypedHeaders(); 302var requestHeaders = httpContext.Request.GetTypedHeaders(); 343var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
42var requestHeaders = httpContext.Request.GetTypedHeaders(); 74var requestHeaders = httpContext.Request.GetTypedHeaders(); 106var requestHeaders = httpContext.Request.GetTypedHeaders(); 133var requestHeaders = httpContext.Request.GetTypedHeaders(); 162var requestHeaders = httpContext.Request.GetTypedHeaders(); 188var requestHeaders = httpContext.Request.GetTypedHeaders(); 217var requestHeaders = httpContext.Request.GetTypedHeaders(); 244var requestHeaders = httpContext.Request.GetTypedHeaders(); 298var requestHeaders = httpContext.Request.GetTypedHeaders();
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
54var requestHeaders = httpContext.Request.GetTypedHeaders(); 92var requestHeaders = httpContext.Request.GetTypedHeaders(); 129var requestHeaders = httpContext.Request.GetTypedHeaders(); 162var requestHeaders = httpContext.Request.GetTypedHeaders(); 197var requestHeaders = httpContext.Request.GetTypedHeaders(); 230var requestHeaders = httpContext.Request.GetTypedHeaders(); 267var requestHeaders = httpContext.Request.GetTypedHeaders(); 298var requestHeaders = httpContext.Request.GetTypedHeaders(); 333var requestHeaders = httpContext.Request.GetTypedHeaders();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
272_requestHeaders = _request.GetTypedHeaders();
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
87private RequestHeaders RequestHeaders => _requestHeaders ??= _request.GetTypedHeaders();
Microsoft.AspNetCore.StaticFiles.Tests (3)
RangeHelperTests.cs (3)
68var (isRangeRequest, parsedRangeResult) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 10, NullLogger.Instance); 85var (isRangeRequest, parsedRangeResult) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 10, NullLogger.Instance); 101var (isRangeRequest, parsedRange) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 4, NullLogger.Instance);