2 writes to Headers
Microsoft.Build.Tasks.UnitTests (2)
672 references to Headers
Aspire.Dashboard.Tests (20)
Integration\OtlpHttpServiceTests.cs (16)
44content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
53Assert.Equal(OtlpHttpEndpointsBuilder.ProtobufContentType, responseMessage.Content.Headers.GetValues("content-type").Single());
70content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
114content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
138content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
166content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
179Assert.Equal(OtlpHttpEndpointsBuilder.ProtobufContentType, responseMessage.Content.Headers.GetValues("content-type").Single());
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);
294Assert.Equal(OtlpHttpEndpointsBuilder.ProtobufContentType, responseMessage.Content.Headers.GetValues("content-type").Single());
314content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
323Assert.Equal(OtlpHttpEndpointsBuilder.ProtobufContentType, responseMessage.Content.Headers.GetValues("content-type").Single());
343content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.ProtobufContentType);
352Assert.Equal(OtlpHttpEndpointsBuilder.ProtobufContentType, responseMessage.Content.Headers.GetValues("content-type").Single());
AuthSamples.FunctionalTests (3)
Binding.Http.IntegrationTests (4)
dotnet-svcutil-lib (25)
HttpStress (2)
IIS.FunctionalTests (6)
IISExpress.FunctionalTests (4)
InMemory.FunctionalTests (2)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
Microsoft.AspNetCore.Authentication.Test (25)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.CookiePolicy.Test (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (24)
HealthCheckMiddlewareTests.cs (18)
122Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
152Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
185Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
218Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
251Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
284Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
329Assert.Equal("application/json", response.Content.Headers.ContentType.ToString());
434Assert.Equal(new string[] { "Thu, 01 Jan 1970 00:00:00 GMT" }, response.Content.Headers.GetValues(HeaderNames.Expires));
469Assert.False(response.Content.Headers.Contains(HeaderNames.Expires));
505Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
535Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
593Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
658Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
695Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
733Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
771Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
851Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
895Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
Microsoft.AspNetCore.Diagnostics.Tests (7)
Microsoft.AspNetCore.HeaderPropagation (3)
Microsoft.AspNetCore.HeaderPropagation.Tests (6)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (8)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (212)
BasicTests.cs (11)
56Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
76Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
100Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
120Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
152Assert.Null(response.Content.Headers.ContentType);
153Assert.Equal(0, response.Content.Headers.ContentLength);
196Assert.Equal(0, response.Content.Headers.ContentLength);
212Assert.Equal(0, response.Content.Headers.ContentLength);
246Assert.Equal("text/html", response.Content.Headers.ContentType.MediaType);
269Assert.Equal("text/html", response.Content.Headers.ContentType.MediaType);
292Assert.Equal("text/html", response.Content.Headers.ContentType.MediaType);
ContentNegotiationTest.cs (21)
49Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
66Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
82Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
97Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
117Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
136Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
161Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
179Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
221var contentType = response.Content.Headers.ContentType;
242Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
260Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
277Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
294Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
312Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
328Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
353Assert.Equal(expectedContentType, response.Content.Headers.ContentType);
375Assert.Equal("text/plain; charset=utf-8", response.Content.Headers.ContentType.ToString());
393Assert.Equal("application/json; charset=utf-8", response.Content.Headers.ContentType.ToString());
496Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
514Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
535Assert.Equal("application/xml; charset=utf-8", response.Content.Headers.ContentType.ToString());
FileResultTests.cs (100)
44Assert.NotNull(response.Content.Headers.ContentType);
45Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
67Assert.NotNull(response.Content.Headers.ContentType);
68Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
89Assert.NotNull(response.Content.Headers.ContentType);
90Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
109Assert.NotNull(response.Content.Headers.ContentType);
110Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
111Assert.Equal(0, response.Content.Headers.ContentLength);
131Assert.NotNull(response.Content.Headers.ContentType);
132Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
153Assert.NotNull(response.Content.Headers.ContentType);
154Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
173Assert.NotNull(response.Content.Headers.ContentType);
174Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
175Assert.Equal(0, response.Content.Headers.ContentLength);
191Assert.NotNull(response.Content.Headers.ContentType);
192Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
198var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
217Assert.NotNull(response.Content.Headers.ContentType);
218Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
236Assert.NotNull(response.Content.Headers.ContentType);
237Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
256Assert.NotNull(response.Content.Headers.ContentType);
257Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
289Assert.NotNull(response.Content.Headers.ContentType);
290Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
296var contentLength = response.Content.Headers.ContentLength;
299var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
314Assert.NotNull(response.Content.Headers.ContentType);
315Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
331Assert.NotNull(response.Content.Headers.ContentType);
332Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
353Assert.NotNull(response.Content.Headers.ContentType);
354Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
376Assert.NotNull(response.Content.Headers.ContentType);
377Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
397Assert.NotNull(response.Content.Headers.ContentType);
398Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
399Assert.Equal(0, response.Content.Headers.ContentLength);
412Assert.NotNull(response.Content.Headers.ContentType);
413Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
419var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
438Assert.NotNull(response.Content.Headers.ContentType);
439Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
457Assert.NotNull(response.Content.Headers.ContentType);
458Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
508Assert.NotNull(response.Content.Headers.ContentType);
509Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
515var contentLength = response.Content.Headers.ContentLength;
518var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
532Assert.NotNull(response.Content.Headers.ContentType);
533Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
555Assert.NotNull(response.Content.Headers.ContentType);
556Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
577Assert.NotNull(response.Content.Headers.ContentType);
578Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
597Assert.NotNull(response.Content.Headers.ContentType);
598Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
601Assert.NotNull(response.Content.Headers.ContentType);
602Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
603Assert.Equal(0, response.Content.Headers.ContentLength);
616Assert.NotNull(response.Content.Headers.ContentType);
617Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
623var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
642Assert.NotNull(response.Content.Headers.ContentType);
643Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
661Assert.NotNull(response.Content.Headers.ContentType);
662Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
681Assert.NotNull(response.Content.Headers.ContentType);
682Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
714Assert.NotNull(response.Content.Headers.ContentType);
715Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
721var contentLength = response.Content.Headers.ContentLength;
724var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
741Assert.NotNull(response.Content.Headers.ContentType);
742Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
748var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
768Assert.NotNull(response.Content.Headers.ContentType);
769Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
773var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
792Assert.NotNull(response.Content.Headers.ContentType);
793Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
811Assert.NotNull(response.Content.Headers.ContentType);
812Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
816var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
834Assert.NotNull(response.Content.Headers.ContentType);
835Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
838var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
858Assert.NotNull(response.Content.Headers.ContentType);
859Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
862var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
881Assert.NotNull(response.Content.Headers.ContentType);
882Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
883Assert.Equal(0, response.Content.Headers.ContentLength);
886var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
918Assert.NotNull(response.Content.Headers.ContentType);
919Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
925var contentLength = response.Content.Headers.ContentLength;
928var contentDisposition = response.Content.Headers.ContentDisposition.ToString();
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
Microsoft.AspNetCore.ResponseCaching.Tests (4)
Microsoft.AspNetCore.ResponseCompression.Tests (21)
ResponseCompressionMiddlewareTest.cs (21)
424Assert.True(response.Content.Headers.ContentEncoding.Contains(otherContentEncoding));
425Assert.False(response.Content.Headers.ContentEncoding.Contains("gzip"));
426Assert.Equal(50, response.Content.Headers.ContentLength);
755Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
756Assert.Single(response.Content.Headers.ContentEncoding, encoding);
808Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
809Assert.Single(response.Content.Headers.ContentEncoding, encoding);
877Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
878Assert.Single(response.Content.Headers.ContentEncoding, encoding);
941Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
942Assert.Single(response.Content.Headers.ContentEncoding, encoding);
1005Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out var md5));
1007Assert.Empty(response.Content.Headers.ContentEncoding);
1217Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
1218Assert.Single(response.Content.Headers.ContentEncoding, encoding);
1301Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _));
1302Assert.Single(response.Content.Headers.ContentEncoding, expectedEncoding);
1303Assert.Equal(expectedBodyLength, response.Content.Headers.ContentLength);
1325Assert.NotNull(response.Content.Headers.GetValues(HeaderNames.ContentMD5));
1326Assert.Empty(response.Content.Headers.ContentEncoding);
1327Assert.Equal(expectedBodyLength, response.Content.Headers.ContentLength);
Microsoft.AspNetCore.Routing.FunctionalTests (10)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (51)
ResponseBodyTests.cs (11)
36Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
64Assert.Equal(0, response.Content.Headers.ContentLength);
123Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
155Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
180Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
202Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
226Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
306Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
338Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
366Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
393Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
ResponseSendFileTests.cs (11)
74Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
93Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
112Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
132Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
151Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
208Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
228Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
249Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
270Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
299Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
322Assert.False(response.Content.Headers.TryGetValues("content-length", out var contentLength), "Content-Length");
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticAssets.Tests (16)
StaticAssetsIntegrationTests.cs (16)
65Assert.Equal(13, response.Content.Headers.ContentLength);
66Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
115Assert.Equal(13, response.Content.Headers.ContentLength);
116Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
167Assert.Equal(13, response.Content.Headers.ContentLength);
168Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
336Assert.Equal(13, response.Content.Headers.ContentLength);
337Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
389Assert.Equal(22, response.Content.Headers.ContentLength);
390Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
445Assert.Equal(55, response.Content.Headers.ContentLength);
446Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
764Assert.NotNull(response.Content.Headers.LastModified);
766Assert.Equal(response.Content.Headers.LastModified.Value.Offset, TimeSpan.Zero);
788req2.Headers.IfModifiedSince = resp1.Content.Headers.LastModified;
825var lastModified = resp1.Content.Headers.LastModified.Value;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (6)
Microsoft.AspNetCore.StaticFiles.Tests (86)
RangeHeaderTests.cs (54)
28Assert.Equal("bytes 0-10/62", resp.Content.Headers.ContentRange.ToString());
29Assert.Equal(11, resp.Content.Headers.ContentLength);
51Assert.Null(resp.Content.Headers.ContentRange);
52Assert.Equal(62, resp.Content.Headers.ContentLength);
66req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.ToString("r"));
70Assert.Equal("bytes 0-10/62", resp.Content.Headers.ContentRange.ToString());
71Assert.Equal(11, resp.Content.Headers.ContentLength);
83req.Headers.Add("If-Modified-Since", original.Content.Headers.LastModified.Value.AddHours(-1).ToString("r"));
87Assert.Equal("bytes 0-10/62", resp.Content.Headers.ContentRange.ToString());
88Assert.Equal(11, resp.Content.Headers.ContentLength);
100req.Headers.Add("If-Modified-Since", original.Content.Headers.LastModified.Value.ToString("r"));
117req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.ToString("r"));
122Assert.Equal(original.Content.Headers.LastModified, resp.Content.Headers.LastModified);
123Assert.Null(resp.Content.Headers.ContentRange);
124Assert.Equal(62, resp.Content.Headers.ContentLength);
140Assert.Null(resp.Content.Headers.ContentRange);
141Assert.Equal(62, resp.Content.Headers.ContentLength);
157Assert.Null(resp.Content.Headers.ContentRange);
158Assert.Equal(62, resp.Content.Headers.ContentLength);
172req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.Subtract(TimeSpan.FromDays(1)).ToString("r"));
176Assert.Null(resp.Content.Headers.ContentRange);
177Assert.Equal(62, resp.Content.Headers.ContentLength);
191req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.Subtract(TimeSpan.FromDays(1)).ToString("r"));
195Assert.Null(resp.Content.Headers.ContentRange);
196Assert.Equal(62, resp.Content.Headers.ContentLength);
214Assert.Null(resp.Content.Headers.ContentRange);
215Assert.Equal(62, resp.Content.Headers.ContentLength);
219req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.ToString("r"));
222Assert.Null(resp.Content.Headers.ContentRange);
223Assert.Equal(62, resp.Content.Headers.ContentLength);
241Assert.Null(resp.Content.Headers.ContentRange);
242Assert.Equal(62, resp.Content.Headers.ContentLength);
246req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.ToString("r"));
249Assert.Null(resp.Content.Headers.ContentRange);
250Assert.Equal(62, resp.Content.Headers.ContentLength);
274Assert.NotNull(resp.Content.Headers.ContentRange);
275Assert.Equal("bytes " + expectedRange + "/62", resp.Content.Headers.ContentRange.ToString());
276Assert.Equal(length, resp.Content.Headers.ContentLength);
295Assert.NotNull(resp.Content.Headers.ContentRange);
296Assert.Equal("bytes " + expectedRange + "/1", resp.Content.Headers.ContentRange.ToString());
297Assert.Equal(length, resp.Content.Headers.ContentLength);
330Assert.Null(resp.Content.Headers.ContentRange);
331Assert.Equal(62, resp.Content.Headers.ContentLength);
348Assert.Equal("bytes */62", resp.Content.Headers.ContentRange.ToString());
363Assert.Null(resp.Content.Headers.ContentRange);
383Assert.Null(resp.Content.Headers.ContentRange);
384Assert.Equal(62, resp.Content.Headers.ContentLength);
405Assert.Null(resp.Content.Headers.ContentRange);
406Assert.Equal(62, resp.Content.Headers.ContentLength);
426Assert.Equal("text/plain", resp.Content.Headers.ContentType.ToString());
427Assert.Null(resp.Content.Headers.ContentRange);
428Assert.Equal(62, resp.Content.Headers.ContentLength);
446Assert.Equal("text/plain", resp.Content.Headers.ContentType.ToString());
StaticFileMiddlewareTests.cs (20)
134Assert.Equal(response.Content.Headers.LastModified.Value, trimmed);
190Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
191Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
192Assert.Equal(response.Content.Headers.ContentLength, responseContent.Length);
229Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
230Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
231Assert.Equal(response.Content.Headers.ContentLength, responseContent.Length);
271Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
272Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
273Assert.Equal(response.Content.Headers.ContentLength, responseContent.Length);
321Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
322Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
323Assert.Equal(response.Content.Headers.ContentLength, responseContent.Length);
364Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
365Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
366Assert.Equal(response.Content.Headers.ContentLength, responseContent.Length);
412Assert.Equal("text/customfortest+plain", response.Content.Headers.ContentType.ToString());
482Assert.Equal("text/plain", response.Content.Headers.ContentType.ToString());
483Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
539Assert.Null(response.Content.Headers.LastModified);
Microsoft.AspNetCore.TestHost (5)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.Tests (3)
Microsoft.Build.Tasks.Core (6)
Microsoft.Extensions.Http (4)
Logging\LogHelper.cs (4)
108new HttpHeadersLogValue(HttpHeadersLogValue.Kind.Request, request.Headers, request.Content?.Headers, shouldRedactHeaderValue),
123new HttpHeadersLogValue(HttpHeadersLogValue.Kind.Response, response.Headers, response.Content?.Headers, shouldRedactHeaderValue),
147new HttpHeadersLogValue(HttpHeadersLogValue.Kind.Request, request.Headers, request.Content?.Headers, shouldRedactHeaderValue),
162new HttpHeadersLogValue(HttpHeadersLogValue.Kind.Response, response.Headers, response.Content?.Headers, shouldRedactHeaderValue),
Microsoft.Extensions.Http.Diagnostics (6)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Microsoft.ML.PerformanceTests (1)
ServerComparison.FunctionalTests (5)
System.Net.Http (41)
System.Net.Http.Json (4)
System.Net.Requests (5)
Templates.Blazor.Tests (1)