1 type derived from HttpMessageInvoker
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
14public partial class HttpClient : HttpMessageInvoker
16 instantiations of HttpMessageInvoker
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (1)
490using var client = new HttpMessageInvoker(httpHandler);
HttpHelpers.cs (1)
63return new HttpMessageInvoker(handler);
Microsoft.AspNetCore.TestHost.Tests (5)
ClientHandlerTests.cs (5)
218var invoker = new HttpMessageInvoker(handler); 313var invoker = new HttpMessageInvoker(handler); 341var invoker = new HttpMessageInvoker(handler); 359HttpMessageInvoker invoker = new HttpMessageInvoker(handler); 495var invoker = new HttpMessageInvoker(handler);
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
139var invoke = new HttpMessageInvoker(handler); 191var invoke = new HttpMessageInvoker(handler1);
Microsoft.Extensions.Http.Resilience.Tests (5)
Resilience\ResilienceHandlerTest.cs (5)
29using var invoker = new HttpMessageInvoker(handler); 67using var invoker = new HttpMessageInvoker(handler); 99using var invoker = new HttpMessageInvoker(handler); 130using var invoker = new HttpMessageInvoker(handler); 154using var invoker = new HttpMessageInvoker(handler);
System.Net.WebSockets.Client (2)
System\Net\WebSockets\WebSocketHandle.Managed.cs (2)
262var invoker = new HttpMessageInvoker(new SocketsHttpHandler() 306return new HttpMessageInvoker(handler);
66 references to HttpMessageInvoker
Interop.FunctionalTests (43)
Http2\Http2RequestTests.cs (6)
62var client = HttpHelpers.CreateClient(maxResponseHeadersLength: 1024); 123var client = HttpHelpers.CreateClient(); 180var client = HttpHelpers.CreateClient(maxResponseHeadersLength: 1024); 205using (var client = HttpHelpers.CreateClient()) 265var client = HttpHelpers.CreateClient(); 291private static async Task<(byte[], HttpResponseHeaders)> StartLongRunningRequestAsync(ILogger logger, IHost host, HttpMessageInvoker client)
Http3\Http3RequestTests.cs (29)
86var client = HttpHelpers.CreateClient(); 144using (var client = HttpHelpers.CreateClient()) 246using (var client = HttpHelpers.CreateClient()) 287using (var client = HttpHelpers.CreateClient()) 336using (var client = HttpHelpers.CreateClient()) 369static async Task<HttpResponseMessage> SendRequestAsync(HttpProtocols protocol, IHost host, HttpMessageInvoker client) 411using (var client = HttpHelpers.CreateClient()) 481using (var client = HttpHelpers.CreateClient()) 553using (var client = HttpHelpers.CreateClient()) 611using (var client = HttpHelpers.CreateClient()) 671using (var client = HttpHelpers.CreateClient()) 718using (var client = HttpHelpers.CreateClient(expect100ContinueTimeout: TimeSpan.FromMinutes(20))) 798using (var client = HttpHelpers.CreateClient()) 813static async Task MakeRequest(HttpMessageInvoker client, string address, int count) 846using (var client = HttpHelpers.CreateClient()) 906using (var client = HttpHelpers.CreateClient()) 1364using (var client = HttpHelpers.CreateClient()) 1417using (var client = HttpHelpers.CreateClient()) 1483using (var client = HttpHelpers.CreateClient()) 1536using (var client = HttpHelpers.CreateClient()) 1596using (var client = HttpHelpers.CreateClient()) 1656using (var client = HttpHelpers.CreateClient()) 1713var client = HttpHelpers.CreateClient(); 1773using (var client = HttpHelpers.CreateClient()) 1878using (var client = HttpHelpers.CreateClient()) 1955using (var client = HttpHelpers.CreateClient()) 2027using (var client = HttpHelpers.CreateClient()) 2123using (var client = HttpHelpers.CreateClient()) 2181using var client = HttpHelpers.CreateClient();
Http3\Http3TlsTests.cs (7)
52using var client = HttpHelpers.CreateClient(); 99using var client = HttpHelpers.CreateClient(includeClientCert: true); 141using var client = HttpHelpers.CreateClient(includeClientCert: true); 190using var client = HttpHelpers.CreateClient(includeClientCert: true); 240using var client = HttpHelpers.CreateClient(includeClientCert: false); 318using var client = HttpHelpers.CreateClient(); 490using var client = new HttpMessageInvoker(httpHandler);
HttpHelpers.cs (1)
38public static HttpMessageInvoker CreateClient(TimeSpan? idleTimeout = null, TimeSpan? expect100ContinueTimeout = null, bool includeClientCert = false, int? maxResponseHeadersLength = null)
Microsoft.AspNetCore.TestHost.Tests (5)
ClientHandlerTests.cs (5)
218var invoker = new HttpMessageInvoker(handler); 313var invoker = new HttpMessageInvoker(handler); 341var invoker = new HttpMessageInvoker(handler); 359HttpMessageInvoker invoker = new HttpMessageInvoker(handler); 495var invoker = new HttpMessageInvoker(handler);
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
139var invoke = new HttpMessageInvoker(handler); 191var invoke = new HttpMessageInvoker(handler1);
Microsoft.Extensions.Http.Resilience.Tests (6)
Resilience\ResilienceHandlerTest.cs (6)
29using var invoker = new HttpMessageInvoker(handler); 67using var invoker = new HttpMessageInvoker(handler); 99using var invoker = new HttpMessageInvoker(handler); 130using var invoker = new HttpMessageInvoker(handler); 154using var invoker = new HttpMessageInvoker(handler); 163HttpMessageInvoker invoker,
netstandard (1)
netstandard.cs (1)
1128[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.HttpMessageInvoker))]
System.Net.WebSockets.Client (9)
System\Net\WebSockets\ClientWebSocket.cs (3)
91/// <param name="invoker">The <see cref="HttpMessageInvoker" /> instance to use for connecting.</param> 94public Task ConnectAsync(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken) 124private async Task ConnectAsyncCore(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken)
System\Net\WebSockets\WebSocketHandle.Managed.cs (6)
22private static HttpMessageInvoker? s_defaultInvokerDefaultProxy; 23private static HttpMessageInvoker? s_defaultInvokerNoProxy; 49public async Task ConnectAsync(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken, ClientWebSocketOptions options) 248private static HttpMessageInvoker SetupInvoker(ClientWebSocketOptions options, out bool disposeInvoker) 258ref HttpMessageInvoker? invokerRef = ref useDefaultProxy ? ref s_defaultInvokerDefaultProxy : ref s_defaultInvokerNoProxy; 262var invoker = new HttpMessageInvoker(new SocketsHttpHandler()