12 references to TryAddWithoutValidation
System.Net.Http (12)
System\Net\Http\DiagnosticsHandler.cs (1)
355request.Headers.TryAddWithoutValidation(descriptor, value);
System\Net\Http\Headers\HttpHeaders.cs (2)
132TryAddWithoutValidation(descriptor, value); 223TryAddWithoutValidation(descriptor, value ?? string.Empty);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
789tunnelRequest.Headers.TryAddWithoutValidation(KnownHeaders.UserAgent.Descriptor, _connectTunnelUserAgent);
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)
596responseMessage.TrailingHeaders.TryAddWithoutValidation(name, value); 1091_response!.Content!.Headers.TryAddWithoutValidation(descriptor, headerValue); 1094_response!.Headers.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.Request) ? descriptor.AsCustomHeader() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1319bool added = headers.TryAddWithoutValidation(descriptor, headerValue);
System\Net\Http\StringContent.cs (1)
68Headers.TryAddWithoutValidation(KnownHeaders.ContentType.Descriptor, knownValue);