102 references to TryAddWithoutValidation
Aspire.Dashboard.Tests (29)
Integration\OtlpCorsHttpServiceTests.cs (15)
31preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Method", "POST");
32preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Headers", "x-requested-with,x-custom,Content-Type");
33preflightRequest.Headers.TryAddWithoutValidation("Origin", "http://localhost:8000");
56preflightRequest1.Headers.TryAddWithoutValidation("Access-Control-Request-Method", "POST");
57preflightRequest1.Headers.TryAddWithoutValidation("Access-Control-Request-Headers", "x-requested-with,x-custom,Content-Type");
58preflightRequest1.Headers.TryAddWithoutValidation("Origin", "http://localhost:8000");
70preflightRequest2.Headers.TryAddWithoutValidation("Access-Control-Request-Method", "POST");
71preflightRequest2.Headers.TryAddWithoutValidation("Access-Control-Request-Headers", "x-requested-with,x-custom,Content-Type");
72preflightRequest2.Headers.TryAddWithoutValidation("Origin", "http://localhost:8001");
96preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Method", "POST");
97preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Headers", "x-requested-with,x-custom,Content-Type");
98preflightRequest.Headers.TryAddWithoutValidation("Origin", "http://localhost:8001");
124preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Method", "POST");
125preflightRequest.Headers.TryAddWithoutValidation("Access-Control-Request-Headers", "x-requested-with,x-custom,Content-Type");
126preflightRequest.Headers.TryAddWithoutValidation("Origin", "http://localhost:8000");
Integration\OtlpHttpServiceTests.cs (13)
44content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
70content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
114content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
138content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
142requestMessage.Headers.TryAddWithoutValidation(OtlpApiKeyAuthenticationHandler.ApiKeyHeaderName, "WRONG");
166content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
170requestMessage.Headers.TryAddWithoutValidation(OtlpApiKeyAuthenticationHandler.ApiKeyHeaderName, apiKey);
204content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
233content.Headers.TryAddWithoutValidation("content-type", contentType);
259content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
285content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
314content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
343content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
AuthSamples.FunctionalTests (2)
dotnet-svcutil-lib (3)
Interop.FunctionalTests (2)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HttpLogging.Tests (3)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (27)
FileResultTests.cs (14)
82httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
102httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
146httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
166httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
280httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
369httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
389httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
499httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
570httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
590httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
705httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
851httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
874httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
909httpRequestMessage.Headers.TryAddWithoutValidation("Range", rangeString);
Microsoft.AspNetCore.Server.IISIntegration.Tests (13)
IISMiddlewareTests.cs (13)
55req.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
135request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
136request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-EVENT", shutdownEvent);
194request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
195request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-EVENT", "shutdown");
239request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
240request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-EVENT", "shutdown");
284request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
285request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-EVENT", shutdownEvent);
384request.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
425req.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
482req.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
527req.Headers.TryAddWithoutValidation("MS-ASPNETCORE-TOKEN", "TestToken");
Microsoft.AspNetCore.StaticAssets.Tests (3)
Microsoft.AspNetCore.StaticFiles.Tests (4)
Microsoft.AspNetCore.TestHost (2)
System.Net.Http.Json (1)
System.Net.Requests (2)
System.Net.WebSockets.Client (7)