41 references to SendAsync
HttpStress (3)
Program.cs (3)
258
using (HttpResponseMessage m = await ctx.HttpClient.
SendAsync
(req, HttpCompletionOption.ResponseHeadersRead))
272
using (HttpResponseMessage m = await ctx.HttpClient.
SendAsync
(req, HttpCompletionOption.ResponseHeadersRead))
288
using (HttpResponseMessage m = await ctx.HttpClient.
SendAsync
(req, HttpCompletionOption.ResponseHeadersRead))
InMemory.FunctionalTests (3)
KestrelMetricsTests.cs (3)
574
responseMessage = await httpClient.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
653
responseMessage = await httpClient.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
813
using var responseMessage = await httpClient.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
Interop.FunctionalTests (11)
Http3\Http3RequestTests.cs (4)
1019
var responseTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
1116
var responseTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
1262
var responseTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
1321
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
HttpClientHttp2InteropTests.cs (7)
92
using var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
186
using var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
299
var responseTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
376
var responseTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
436
using var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
735
using var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
792
var requestTask = client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
Microsoft.AspNetCore.ResponseCompression.Tests (8)
ResponseCompressionMiddlewareTest.cs (8)
656
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
701
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
753
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
806
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
876
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
940
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
1004
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
1215
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
Microsoft.AspNetCore.TestHost.Tests (7)
TestClientTests.cs (7)
205
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
313
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
370
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
432
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
479
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
530
var response = await client.
SendAsync
(httpRequest, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
851
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
840
var response = await client.
SendAsync
(request, HttpCompletionOption.ResponseHeadersRead);
Microsoft.Extensions.Http.Diagnostics.Tests (7)
Logging\AcceptanceTests.cs (5)
198
.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead)
593
_ = await client.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
619
_ = await client.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
642
_ = await client.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
688
var content = await client.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
Logging\Internal\TestHttpClient1.cs (1)
20
return _httpClient.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
Logging\Internal\TestHttpClient2.cs (1)
20
return _httpClient.
SendAsync
(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
46
return client.
SendAsync
(request, default);