1 override of SendAsync
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
499public override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) =>
58 references to SendAsync
Interop.FunctionalTests (45)
Http2\Http2RequestTests.cs (4)
130var response1 = await client.SendAsync(request1, CancellationToken.None); 187var response = await client.SendAsync(request1, CancellationToken.None); 214var responseMessage = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 298var responseMessage = await client.SendAsync(request, CancellationToken.None).DefaultTimeout();
Http3\Http3RequestTests.cs (34)
93var response1 = await client.SendAsync(request1, CancellationToken.None); 153var responseMessage = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 255var response = await client.SendAsync(request, CancellationToken.None); 299var responseTask = client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 379var responseTask = client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 423var responseTask = client.SendAsync(request, CancellationToken.None); 494var responseTask = client.SendAsync(request, cts.Token); 565var sendTask = client.SendAsync(request, CancellationToken.None); 624var sendTask = client.SendAsync(request, CancellationToken.None); 680var ex = await Assert.ThrowsAnyAsync<HttpRequestException>(() => client.SendAsync(request, CancellationToken.None)).DefaultTimeout(); 733var responseTask = client.SendAsync(request, cts.Token); 819var response = await client.SendAsync(request, CancellationToken.None); 855var response1 = await client.SendAsync(request1, CancellationToken.None); 866var response2 = await client.SendAsync(request2, CancellationToken.None); 915var response1 = await client.SendAsync(request1, CancellationToken.None); 928var response2 = await client.SendAsync(request2, CancellationToken.None); 944var response3 = await client.SendAsync(request3, CancellationToken.None); 1374var response = await client.SendAsync(request, CancellationToken.None); 1426var response1 = await client.SendAsync(request1, CancellationToken.None); 1436var response2 = await client.SendAsync(request2, CancellationToken.None); 1493var response1 = await client.SendAsync(request1, CancellationToken.None); 1504var response2 = await client.SendAsync(request2, CancellationToken.None); 1550await client.SendAsync(request1, CancellationToken.None); 1564var response2 = await client.SendAsync(request2, CancellationToken.None); 1607var response1 = await client.SendAsync(request1, CancellationToken.None); 1667var response1 = await client.SendAsync(request1, CancellationToken.None); 1723var response1 = await client.SendAsync(request1, CancellationToken.None); 1780var responseTask1 = client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/1"), CancellationToken.None); 1830var response3 = await client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/3"), CancellationToken.None); 1889var responseTask = client.SendAsync(request1, CancellationToken.None); 1966var response1 = await client.SendAsync(request1, CancellationToken.None); 2044var responseTask = client.SendAsync(request, CancellationToken.None); 2144var responseTask = client.SendAsync(request, CancellationToken.None); 2196var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout();
Http3\Http3TlsTests.cs (7)
61var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 107var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 149var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 198var sendTask = client.SendAsync(request, CancellationToken.None); 248var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 327var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout(); 492var response = await client.SendAsync(request, CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.TestHost.Tests (5)
ClientHandlerTests.cs (5)
221var response = await invoker.SendAsync(message, CancellationToken.None); 316var responseTask = invoker.SendAsync(message, CancellationToken.None); 363HttpResponseMessage response = await invoker.SendAsync(message, CancellationToken.None); 366response = await invoker.SendAsync(message, CancellationToken.None); 502responseTask = invoker.SendAsync(message, CancellationToken.None);
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
142var response = await invoke.SendAsync(new HttpRequestMessage(), CancellationToken.None); 194var response = await invoke.SendAsync(new HttpRequestMessage(), CancellationToken.None);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\ResilienceHandlerTest.cs (1)
171return invoker.SendAsync(request, cancellationToken);
System.Net.Http (4)
System\Net\Http\HttpClient.cs (4)
188response = await base.SendAsync(request, cts.Token).ConfigureAwait(false); 260response = await base.SendAsync(request, cts.Token).ConfigureAwait(false); 334response = await base.SendAsync(request, cts.Token).ConfigureAwait(false); 523response = await base.SendAsync(request, cts.Token).ConfigureAwait(false);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
129: invoker.SendAsync(request, externalAndAbortCancellation.Token);