12 references to HeaderType
System.Net.Http (12)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
128
Debug.Assert(
HeaderType
!= HttpHeaderType.Custom);
System\Net\Http\Headers\HttpHeaders.cs (4)
701
Debug.Assert((descriptor.
HeaderType
& _treatAsCustomHeaderTypes) == 0);
1084
if ((descriptor.
HeaderType
& _allowedHeaderTypes) != 0)
1088
else if ((descriptor.
HeaderType
& _treatAsCustomHeaderTypes) != 0)
1106
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)
1090
case 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)
1278
HttpHeaderType headerType = descriptor.
HeaderType
;