“httpClient getStringAsync” Kode Jawaban

httpClient getStringAsync

private static async string HttpGet(string uri)
        {
            var http = new HttpClient();
            http.BaseAddress = new Uri(uri);
            var res = await http.GetStringAsync("");
            return res;
        }
Mariano Montano

httpClient getStringAsync

private static string HttpGet(string uri)
{
  var http = new HttpClient();
  http.BaseAddress = new Uri(uri);
  var res = http.GetStringAsync("").Result;
  return res;
}
Mariano Montano

Jawaban yang mirip dengan “httpClient getStringAsync”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya