19 types derived from HttpContent
dotnet-svcutil-lib (1)
HttpStress (3)
Interop.FunctionalTests (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.TestHost.Tests (2)
System.Net.Http (5)
System.Net.Http.Json (1)
87 references to HttpContent
Aspire.EndToEnd.Tests (1)
Aspire.Templates.Tests (1)
Binding.Http.IntegrationTests (1)
ConfigurationSchemaGenerator.Tests (1)
dotnet-svcutil-lib (10)
InMemory.FunctionalTests (2)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (10)
513public static TheoryData<HttpContent, string> FormContent
517var dataset = new TheoryData<HttpContent, string>();
533public async Task RequestDelegatePopulatesFromIFormCollectionParameter(HttpContent content, string contentType)
580public async Task RequestDelegatePopulatesFromIFormCollectionParameterWithAttribute(HttpContent content, string contentType)
627public async Task RequestDelegatePopulatesFromOptionalFormParameter(HttpContent content, string contentType)
655public async Task RequestDelegatePopulatesFromMultipleRequiredFormParameters(HttpContent content, string contentType)
688public async Task RequestDelegatePopulatesFromOptionalMissingFormParameter(HttpContent content, string contentType)
719public async Task RequestDelegatePopulatesFromFormParameterWithMetadata(HttpContent content, string contentType)
748public async Task RequestDelegatePopulatesFromFormAndBoundParameter(HttpContent content, string contentType)
858public async Task RequestDelegateSets400ResponseIfRequiredFormItemNotSpecified(HttpContent content, string contentType)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Testing (7)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.ML.PerformanceTests (1)
netstandard (1)
ServerComparison.FunctionalTests (1)
System.Net.Http (20)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (20)
84public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
85public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
86public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
87public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
88public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
89public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
90public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
91public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
92public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
93public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
94public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
95public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
291public System.Net.Http.HttpContent? Content { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }
344public System.Net.Http.HttpContent Content { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }
377public System.Net.Http.HeaderEncodingSelector<System.Net.Http.HttpContent>? HeaderEncodingSelector { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }
378public virtual void Add(System.Net.Http.HttpContent content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
383public System.Collections.Generic.IEnumerator<System.Net.Http.HttpContent> GetEnumerator() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
394public override void Add(System.Net.Http.HttpContent content) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
395public void Add(System.Net.Http.HttpContent content, string name) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
396public void Add(System.Net.Http.HttpContent content, string name, string fileName) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
System.Net.Http.Json (18)
System\Net\Http\Json\HttpContentJsonExtensions.cs (11)
30public static Task<object?> ReadFromJsonAsync(this HttpContent content, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken = default)
46public static Task<object?> ReadFromJsonAsync(this HttpContent content, Type type, CancellationToken cancellationToken = default)
61public static Task<T?> ReadFromJsonAsync<T>(this HttpContent content, JsonSerializerOptions? options, CancellationToken cancellationToken = default)
77public static Task<T?> ReadFromJsonAsync<T>(this HttpContent content, CancellationToken cancellationToken = default)
84private static async Task<object?> ReadFromJsonAsyncCore(HttpContent content, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken)
94private static async Task<T?> ReadFromJsonAsyncCore<T>(HttpContent content, JsonSerializerOptions? options, CancellationToken cancellationToken)
102public static Task<object?> ReadFromJsonAsync(this HttpContent content, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default)
109public static Task<T?> ReadFromJsonAsync<T>(this HttpContent content, JsonTypeInfo<T> jsonTypeInfo, CancellationToken cancellationToken = default)
116private static async Task<object?> ReadFromJsonAsyncCore(HttpContent content, Type type, JsonSerializerContext context, CancellationToken cancellationToken)
124private static async Task<T?> ReadFromJsonAsyncCore<T>(HttpContent content, JsonTypeInfo<T> jsonTypeInfo, CancellationToken cancellationToken)
132internal static ValueTask<Stream> GetContentStreamAsync(HttpContent content, CancellationToken cancellationToken)