7 references to AsCustomHeader
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (2)
1090
return descriptor.
AsCustomHeader
();
1115
descriptor = descriptor.
AsCustomHeader
();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (2)
712
_trailers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.
AsCustomHeader
() : descriptor, headerValue);
724
_response.Headers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.
AsCustomHeader
() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
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)
1283
descriptor = descriptor.
AsCustomHeader
();