Čítať v angličtine Upraviť

Zdieľať cez


HttpContentJsonExtensions Class

Definition

Contains extension methods to read and then parse the HttpContent from JSON.

C#
public static class HttpContentJsonExtensions
Inheritance
HttpContentJsonExtensions

Methods

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonTypeInfo<TValue>, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an async enumerable operation.

ReadFromJsonAsync(HttpContent, Type, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

ReadFromJsonAsync(HttpContent, Type, JsonSerializerContext, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

ReadFromJsonAsync(HttpContent, Type, JsonSerializerOptions, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

ReadFromJsonAsync<T>(HttpContent, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

ReadFromJsonAsync<T>(HttpContent, JsonSerializerOptions, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

ReadFromJsonAsync<T>(HttpContent, JsonTypeInfo<T>, CancellationToken)

Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation.

Applies to

Produkt Verzie
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)