207 writes to Content
Aspire.Dashboard.Tests (3)
Aspire.Hosting.Redis (1)
AuthSamples.FunctionalTests (1)
Binding.Http.IntegrationTests (1)
dotnet-svcutil-lib (4)
HttpStress (7)
Program.cs (7)
243using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringDuplexContent(content) })
257using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplex") { Version = httpVersion, Content = new StringDuplexContent(content) })
271using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplexSlow") { Version = httpVersion, Content = new ByteAtATimeNoLengthContent(Encoding.ASCII.GetBytes(content)) })
285using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) })
302using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) })
305req.Content = new CancelableContent(cts.Token);
347using (var req = new HttpRequestMessage(HttpMethod.Put, serverUri) { Version = httpVersion, Content = new StringContent(content) })
Interop.FunctionalTests (12)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (5)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides.Tests (3)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (69)
ConsumesAttributeTestsBase.cs (5)
102request.Content = new StringContent(input, Encoding.UTF8, requestContentType);
123request.Content = new StringContent(input, Encoding.UTF8, requestContentType);
147request.Content = new StringContent(input, Encoding.UTF8, "application/xml");
168request.Content = new StringContent(input, Encoding.UTF8, "application/vnd.example+json");
191request.Content = new StringContent(input, Encoding.UTF8, "application/vnd.example+xml");
InputObjectValidationTests.cs (4)
270Content = new StringContent(@"{ ""Id"": ""S-1-5-21-1004336348-1177238915-682003330-512"" }", Encoding.UTF8, "application/json"),
291Content = new StringContent(input, Encoding.UTF8, "application/json"),
320Content = new StringContent(input, Encoding.UTF8, "application/json"),
352Content = new StringContent(input, Encoding.UTF8, "application/xml"),
RazorPagesTest.cs (11)
673Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
702Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
728Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
759Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
788Content = new FormUrlEncodedContent(new Dictionary<string, string>
813Content = new FormUrlEncodedContent(new Dictionary<string, string>
844Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
869Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
985Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
1290Content = new FormUrlEncodedContent(new Dictionary<string, string>
1328Content = new FormUrlEncodedContent(new[]
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
Microsoft.AspNetCore.Routing.FunctionalTests (16)
MinimalFormTests.cs (13)
62request.Content = new FormUrlEncodedContent(nameValueCollection);
122request.Content = new FormUrlEncodedContent(nameValueCollection);
167request.Content = new FormUrlEncodedContent(nameValueCollection);
206request.Content = new FormUrlEncodedContent(nameValueCollection);
283request.Content = new FormUrlEncodedContent(nameValueCollection);
330request.Content = new FormUrlEncodedContent(nameValueCollection);
426request.Content = new FormUrlEncodedContent(nameValueCollection);
483request.Content = new FormUrlEncodedContent(nameValueCollection);
545request.Content = new FormUrlEncodedContent(nameValueCollection);
597request.Content = new FormUrlEncodedContent(nameValueCollection);
649request.Content = new FormUrlEncodedContent(nameValueCollection);
695request.Content = new FormUrlEncodedContent(nameValueCollection);
752Content = new ByteArrayContent([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]),
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.TestHost.Tests (9)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.Internal.SymbolHelper (2)
Microsoft.DotNet.VersionTools (4)
Microsoft.Extensions.Http.Diagnostics.Tests (31)
Logging\HttpClientLoggerTest.cs (13)
87Content = new StringContent(input, Encoding.UTF8, TextPlain)
125Content = new StringContent(input, Encoding.UTF8, TextPlain)
187Content = new StringContent(requestContent, Encoding.UTF8, TextPlain)
283Content = new StringContent(requestContent, Encoding.UTF8, TextPlain)
388Content = new StringContent(requestContent, Encoding.UTF8, TextPlain)
484Content = new StringContent(requestContent, Encoding.UTF8, TextPlain)
599Content = new StringContent(requestContent, Encoding.UTF8, TextPlain)
691Content = new StringContent(_fixture.Create<string>(), Encoding.UTF8, TextPlain)
734Content = new StringContent(_fixture.Create<string>(), Encoding.UTF8, TextPlain)
772Content = new StringContent(_fixture.Create<string>(), Encoding.UTF8, TextPlain)
816Content = new StringContent(_fixture.Create<string>(), Encoding.UTF8, TextPlain)
866Content = requestContent,
961Content = new StringContent("request_content", Encoding.UTF8, TextPlain)
Logging\HttpRequestBodyReaderTest.cs (9)
41Content = new StringContent(input, Encoding.UTF8, "text/plain"),
61Content = new StreamContent(new MemoryStream()),
85Content = new StringContent(input, Encoding.UTF8, contentType),
106Content = new StringContent(input, Encoding.UTF8, "text/plain"),
134Content = new StringContent(input, Encoding.UTF8, "text/plain"),
158Content = new StringContent(input, Encoding.UTF8, "text/plain"),
185Content = new StreamContent(streamMock.Object),
211Content = null,
232Content = new StringContent("content", Encoding.UTF8, "text/plain"),
Logging\HttpRequestReaderTest.cs (8)
84Content = new StringContent(requestContent, Encoding.UTF8)
147Content = new StringContent(requestContent, Encoding.UTF8)
210Content = new StringContent(requestContent, Encoding.UTF8),
285Content = new StringContent(requestContent, Encoding.UTF8),
357Content = new StringContent(requestContent, Encoding.UTF8),
415Content = new StringContent(requestContent, Encoding.UTF8),
486Content = new StringContent(requestContent, Encoding.UTF8),
553Content = new StringContent(requestContent, Encoding.UTF8),
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (2)
Microsoft.Extensions.Logging.AzureAppServices (2)
System.Net.Http (4)
System.Net.Requests (2)
99 references to Content
AuthSamples.FunctionalTests (1)
Binding.Http.IntegrationTests (4)
dotnet-svcutil-lib (7)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.HeaderPropagation (4)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.Testing (4)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.TestHost (3)
Microsoft.AspNetCore.TestHost.Tests (3)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (5)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Http.Resilience.Tests (2)
System.Net.Http (38)
System.Net.Requests (1)