13 references to TryAddWithoutValidation
System.Net.Http (13)
System\Net\Http\Headers\HttpHeaders.cs (3)
86TryAddWithoutValidation(descriptor, value); 162TryAddWithoutValidation(descriptor, value); 253TryAddWithoutValidation(descriptor, value ?? string.Empty);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
769tunnelRequest.Headers.TryAddWithoutValidation(KnownHeaders.UserAgent.Descriptor, _connectTunnelUserAgent);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (1)
64request.Headers.TryAddWithoutValidation(KnownHeaders.AcceptEncoding.Descriptor, _acceptEncodingHeaderValue);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
712_trailers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.AsCustomHeader() : descriptor, headerValue); 718_response.Content.Headers.TryAddWithoutValidation(descriptor, headerValue); 724_response.Headers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.Request) == HttpHeaderType.Request ? descriptor.AsCustomHeader() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
1149_response!.Content!.Headers.TryAddWithoutValidation(descriptor, headerValue); 1152_response!.Headers.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue); 1155_trailingHeaders!.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1321bool added = headers.TryAddWithoutValidation(descriptor, headerValue);
System\Net\Http\StringContent.cs (1)
68Headers.TryAddWithoutValidation(KnownHeaders.ContentType.Descriptor, knownValue);