/// <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 GetAndReceiveJson <TResponseJsonObject>(this HttpClient client, string query, bool throwIfFailed = true) => client.SendAndReceiveJsonObject <TResponseJsonObject>(HttpClientRequest.CreateGet(query), throwIfFailed);
/// <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 HttpResponse <string> GetAndReceiveText(this HttpClient client, string query, bool throwIfFailed = true) => client.SendAndReceiveText(HttpClientRequest.CreateGet(query), throwIfFailed);
/// <exception cref="WebException">Channel error</exception> /// <exception cref="TinyTimeoutException">Tiny client timeout</exception> /// <exception cref="InvalidDataException">Data format error</exception> public static IHttpResponse SendGet(this HttpClient client, string query) => client.Send(HttpClientRequest.CreateGet(query));