8 references to JsonHelpers
System.Net.Http.Json (8)
System\Net\Http\Json\HttpClientJsonExtensions.Get.AsyncEnumerable.cs (1)
138var jsonTypeInfo = (JsonTypeInfo<TValue>)JsonHelpers.GetJsonTypeInfo(typeof(TValue), options);
System\Net\Http\Json\HttpContentJsonExtensions.AsyncEnumerable.cs (1)
95var jsonTypeInfo = (JsonTypeInfo<TValue>)JsonHelpers.GetJsonTypeInfo(typeof(TValue), options);
System\Net\Http\Json\HttpContentJsonExtensions.cs (1)
148return JsonHelpers.GetEncoding(content) is Encoding sourceEncoding && sourceEncoding != Encoding.UTF8
System\Net\Http\Json\JsonContent.cs (4)
39Headers.TryAddWithoutValidation("Content-Type", JsonHelpers.DefaultMediaType); 54=> Create(inputValue, JsonHelpers.GetJsonTypeInfo(typeof(T), options), mediaType); 71return new JsonContent(inputValue, JsonHelpers.GetJsonTypeInfo(inputType, options), mediaType); 115Encoding? targetEncoding = JsonHelpers.GetEncoding(this);
System\Net\Http\Json\JsonContent.netcoreapp.cs (1)
16if (JsonHelpers.GetEncoding(this) is Encoding targetEncoding && targetEncoding != Encoding.UTF8)