“httpclient getStringAsync” Code-Antworten

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

Ähnliche Antworten wie “httpclient getStringAsync”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen