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