Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadFromJsonAsync() [2/2]

static Task< object?> System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync ( this HttpContent content,
Type type,
JsonSerializerOptions? options = null,
CancellationToken cancellationToken = default(CancellationToken) )
inlinestatic

Definition at line 15 of file HttpContentJsonExtensions.cs.

16 {
17 if (content == null)
18 {
19 throw new ArgumentNullException("content");
20 }
21 Encoding encoding = JsonHelpers.GetEncoding(content.Headers.ContentType?.CharSet);
22 return ReadFromJsonAsyncCore(content, type, encoding, options, cancellationToken);
23 }
static async Task< object > ReadFromJsonAsyncCore(HttpContent content, Type type, Encoding sourceEncoding, JsonSerializerOptions options, CancellationToken cancellationToken)

References System.cancellationToken, System.Net.Http.Json.JsonHelpers.GetEncoding(), System.Net.Http.HttpContent.Headers, System.options, System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore(), and System.type.