{
+ namespace Microsoft.AspNetCore.Components {
+ public static class HttpClientJsonExtensions {
+ public static Task<T> GetJsonAsync<T>(this HttpClient httpClient, string requestUri);
+ public static Task PostJsonAsync(this HttpClient httpClient, string requestUri, object content);
+ public static Task<T> PostJsonAsync<T>(this HttpClient httpClient, string requestUri, object content);
+ public static Task PutJsonAsync(this HttpClient httpClient, string requestUri, object content);
+ public static Task<T> PutJsonAsync<T>(this HttpClient httpClient, string requestUri, object content);
+ public static Task SendJsonAsync(this HttpClient httpClient, HttpMethod method, string requestUri, object content);
+ public static Task<T> SendJsonAsync<T>(this HttpClient httpClient, HttpMethod method, string requestUri, object content);
+ }
+ }
+}