Exemple #1
0
 public static async Task <HttpResponseMessage> SendAsync(
     this HttpClient client, Action <HttpRequestBuilder> setup)
 {
     return(await client.SendAsync(
                HttpRequestBuilder.New()
                .AddHeader(HeaderNames.AcceptLanguage, Thread.CurrentThread.CurrentUICulture.Name)
                .Setup(setup)
                .Build()));
 }