12 references to HeaderType
System.Net.Http (12)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
128Debug.Assert(HeaderType != HttpHeaderType.Custom);
System\Net\Http\Headers\HttpHeaders.cs (4)
701Debug.Assert((descriptor.HeaderType & _treatAsCustomHeaderTypes) == 0); 1084if ((descriptor.HeaderType & _allowedHeaderTypes) != 0) 1088else if ((descriptor.HeaderType & _treatAsCustomHeaderTypes) != 0) 1106HttpHeaderType headerType = descriptor.HeaderType;
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
712_trailers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.AsCustomHeader() : descriptor, headerValue); 714else if ((descriptor.HeaderType & HttpHeaderType.Content) == HttpHeaderType.Content) 724_response.Headers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.AsCustomHeader() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
1090case HeaderState.ResponseHeaders when descriptor.HeaderType.HasFlag(HttpHeaderType.Content): 1094_response!.Headers.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue); 1097_trailingHeaders!.Add((descriptor.HeaderType.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1278HttpHeaderType headerType = descriptor.HeaderType;