System.Net.Http.Json.HttpContentJsonExtensions
Contains extension methods to read and then parse the HttpContent from JSON.
public static IAsyncEnumerable<TValue> ReadFromJsonAsAsyncEnumerable<TValue>(this HttpContent content, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.
public static IAsyncEnumerable<TValue> ReadFromJsonAsAsyncEnumerable<TValue>(this HttpContent content, JsonSerializerOptions options, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.
public static IAsyncEnumerable<TValue> ReadFromJsonAsAsyncEnumerable<TValue>(this HttpContent content, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.
public static Task<object> ReadFromJsonAsync(this HttpContent content, Type type, JsonSerializerOptions options, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.
public static Task<object> ReadFromJsonAsync(this HttpContent content, Type type, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.
public static Task<T> ReadFromJsonAsync<T>(this HttpContent content, JsonSerializerOptions options, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.
public static Task<T> ReadFromJsonAsync<T>(this HttpContent content, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.
public static Task<object> ReadFromJsonAsync(this HttpContent content, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.
public static Task<T> ReadFromJsonAsync<T>(this HttpContent content, JsonTypeInfo<T> jsonTypeInfo, CancellationToken cancellationToken = default)
Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.