12 references to TryAddWithoutValidation
System.Net.Http (12)
System\Net\Http\DiagnosticsHandler.cs (1)
355
request.Headers.
TryAddWithoutValidation
(descriptor, value);
System\Net\Http\Headers\HttpHeaders.cs (2)
132
TryAddWithoutValidation
(descriptor, value);
223
TryAddWithoutValidation
(descriptor, value ?? string.Empty);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
789
tunnelRequest.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)
596
responseMessage.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)
1319
bool added = headers.
TryAddWithoutValidation
(descriptor, headerValue);
System\Net\Http\StringContent.cs (1)
68
Headers.
TryAddWithoutValidation
(KnownHeaders.ContentType.Descriptor, knownValue);