3 references to TryGetKnownHeader
System.Net.Http (3)
System\Net\Http\Headers\HeaderDescriptor.cs (2)
31
Debug.Assert(customHeader || KnownHeaders.
TryGetKnownHeader
(headerName) is null, $"The {nameof(KnownHeader)} overload should be used for {headerName}");
63
KnownHeader? knownHeader = KnownHeaders.
TryGetKnownHeader
(headerName);
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
163
KnownHeader? knownHeader = KnownHeaders.
TryGetKnownHeader
(descriptor.Name);