14 references to Get
Microsoft.AspNetCore.Http.Extensions.Tests (14)
HeaderDictionaryTypeExtensionsTest.cs (14)
16
var result = context.Request.GetTypedHeaders().
Get
<MediaTypeHeaderValue>(HeaderNames.ContentType);
27
var result = context.Request.GetTypedHeaders().
Get
<MediaTypeHeaderValue>(HeaderNames.ContentType);
38
var result = context.Request.GetTypedHeaders().
Get
<MediaTypeHeaderValue>(HeaderNames.ContentType);
49
var result = context.Request.GetTypedHeaders().
Get
<CacheControlHeaderValue>(HeaderNames.CacheControl);
61
var result = context.Request.GetTypedHeaders().
Get
<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition);
73
var result = context.Request.GetTypedHeaders().
Get
<RangeConditionHeaderValue>(HeaderNames.IfRange);
85
var result = context.Request.GetTypedHeaders().
Get
<RangeHeaderValue>(HeaderNames.Range);
97
var result = context.Request.GetTypedHeaders().
Get
<EntityTagHeaderValue>(HeaderNames.ETag);
110
var result = context.Request.GetTypedHeaders().
Get
<DateTimeOffset?>(HeaderNames.ETag);
121
var result = context.Request.GetTypedHeaders().
Get
<long?>(HeaderNames.ETag);
132
var result = context.Request.GetTypedHeaders().
Get
<TestHeaderValue>("custom");
142
var result = context.Request.GetTypedHeaders().
Get
<TestHeaderValue>("custom");
151
var result = context.Request.GetTypedHeaders().
Get
<TestHeaderValue>("custom");
161
Assert.Throws<NotSupportedException>(() => context.Request.GetTypedHeaders().
Get
<object>("custom"));