17 references to ContentType
System.Net.Http (17)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
153
if (knownHeader == KnownHeaders.
ContentType
)
System\Net\Http\Headers\HttpContentHeaders.cs (2)
93
get { return (MediaTypeHeaderValue?)GetSingleParsedValue(KnownHeaders.
ContentType
.Descriptor); }
94
set { SetOrRemoveParsedValue(KnownHeaders.
ContentType
.Descriptor, value); }
System\Net\Http\Headers\KnownHeaders.cs (1)
274
case 'n': return
ContentType
; // Conte[n]t-Type
System\Net\Http\Headers\QPackStaticTable.cs (11)
56
(new HeaderDescriptor(KnownHeaders.
ContentType
), "application/dns-message"), // 44
57
(new HeaderDescriptor(KnownHeaders.
ContentType
), "application/javascript"), // 45
58
(new HeaderDescriptor(KnownHeaders.
ContentType
), "application/json"), // 46
59
(new HeaderDescriptor(KnownHeaders.
ContentType
), "application/x-www-form-urlencoded"), // 47
60
(new HeaderDescriptor(KnownHeaders.
ContentType
), "image/gif"), // 48
61
(new HeaderDescriptor(KnownHeaders.
ContentType
), "image/jpeg"), // 49
62
(new HeaderDescriptor(KnownHeaders.
ContentType
), "image/png"), // 50
63
(new HeaderDescriptor(KnownHeaders.
ContentType
), "text/css"), // 51
64
(new HeaderDescriptor(KnownHeaders.
ContentType
), "text/html; charset=utf-8"), // 52; Whitespace is correct, see spec.
65
(new HeaderDescriptor(KnownHeaders.
ContentType
), "text/plain"), // 53
66
(new HeaderDescriptor(KnownHeaders.
ContentType
), "text/plain;charset=utf-8"), // 54; Whitespace is correct, see spec.
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
520
(KnownHeaders.
ContentType
.Descriptor, Array.Empty<byte>()),
System\Net\Http\StringContent.cs (1)
68
Headers.TryAddWithoutValidation(KnownHeaders.
ContentType
.Descriptor, knownValue);