“httpclient getStringasync” Réponses codées

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

Réponses similaires à “httpclient getStringasync”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code