/// <exception cref="WebException">Channel error</exception> /// <exception cref="TinyHttpException">Server side error</exception> /// <exception cref="InvalidDataException">Data format error</exception> /// <exception cref="TinyTimeoutException">Tiny client timeout</exception> public static TResponseJsonObject PostAndReceiveJson <TResponseJsonObject>(this HttpClient client, string query, object jsonSerializeableContent, bool throwIfFailed = true) => client.SendAndReceiveJsonObject <TResponseJsonObject>(HttpClientRequest.CreateJsonPost(query, jsonSerializeableContent), throwIfFailed);
/// <exception cref="WebException">Channel error</exception> /// <exception cref="InvalidDataException">Data format error</exception> /// <exception cref="TinyTimeoutException">Tiny client timeout</exception> public static IHttpResponse SendJsonPost(this HttpClient client, string query, object jsonSerializeableObject) => client.Send(HttpClientRequest.CreateJsonPost(query, jsonSerializeableObject));