12 references to HeaderType
System.Net.Http (12)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
130
Debug.Assert(
HeaderType
!= HttpHeaderType.Custom);
System\Net\Http\Headers\HttpHeaders.cs (4)
763
Debug.Assert((descriptor.
HeaderType
& _treatAsCustomHeaderTypes) == 0);
1143
if ((descriptor.
HeaderType
& _allowedHeaderTypes) != 0)
1147
else if ((descriptor.
HeaderType
& _treatAsCustomHeaderTypes) != 0)
1165
HttpHeaderType headerType = descriptor.
HeaderType
;
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
712
_trailers.TryAddWithoutValidation((descriptor.
HeaderType
& HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.AsCustomHeader() : descriptor, headerValue);
714
else 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)
1152
case HeaderState.ResponseHeaders when descriptor.
HeaderType
.HasFlag(HttpHeaderType.Content):
1156
_response!.Headers.TryAddWithoutValidation(descriptor.
HeaderType
.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue);
1159
_trailingHeaders!.Add((descriptor.
HeaderType
.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1280
HttpHeaderType headerType = descriptor.
HeaderType
;