13 references to TryAddWithoutValidation
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
36if (!httpHeaders.TryAddWithoutValidation(header.Key, header.Value))
Microsoft.AspNetCore.HeaderPropagation (2)
HeaderPropagationMessageHandler.cs (2)
78if (!request.Headers.TryAddWithoutValidation(entry.OutboundHeaderName, values) && hasContent) 80request.Content!.Headers.TryAddWithoutValidation(entry.OutboundHeaderName, values);
Microsoft.AspNetCore.Mvc.Testing (3)
Handlers\RedirectHandler.cs (3)
90contentCopy.Headers.TryAddWithoutValidation(header.Key, header.Value); 91newRequestContent.Headers.TryAddWithoutValidation(header.Key, header.Value); 106redirectRequestHeaders.TryAddWithoutValidation(header.Key, header.Value);
Microsoft.AspNetCore.SpaServices.Extensions (2)
Proxying\SpaProxy.cs (2)
152if (!requestMessage.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray()) && requestMessage.Content != null) 154requestMessage.Content?.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (3)
204bool success = response.TrailingHeaders.TryAddWithoutValidation(trailer.Key, (IEnumerable<string>)trailer.Value); 221if (!response.Headers.TryAddWithoutValidation(header.Key, (IEnumerable<string>)header.Value)) 223bool success = response.Content.Headers.TryAddWithoutValidation(header.Key, (IEnumerable<string>)header.Value);
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpResponseBodyReader.cs (1)
115_ = newContent.Headers.TryAddWithoutValidation(header.Key, header.Value);
Microsoft.Extensions.Http.Resilience (1)
Internal\RequestMessageSnapshot.cs (1)
53_ = clone.Headers.TryAddWithoutValidation(header.Key, header.Value);