29 instantiations of SocketsHttpHandler
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (2)
Aspire.Hosting.Tests (1)
Aspire.Seq (1)
HttpClientApp (1)
HttpStress (1)
IIS.Tests (1)
InMemory.FunctionalTests (7)
Interop.FunctionalTests (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.DotNet.SignTool (1)
Microsoft.Extensions.Http (2)
Sockets.FunctionalTests (1)
System.Net.Http (1)
System.Net.Requests (1)
System.Net.WebSockets.Client (2)
81 references to SocketsHttpHandler
Aspire.Dashboard (2)
Aspire.Dashboard.Tests (2)
HttpClientApp (1)
HttpStress (1)
InMemory.FunctionalTests (7)
Interop.FunctionalTests (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.Extensions.Http (44)
DependencyInjection\SocketsHttpHandlerBuilderExtensions.cs (29)
15/// Extension methods to configure <see cref="SocketsHttpHandler"/> for a named
21/// Adds a delegate that will be used to configure the primary <see cref="SocketsHttpHandler"/> for a
25/// <param name="configure">A delegate that is used to modify a <see cref="SocketsHttpHandler"/>.</param>
28public static ISocketsHttpHandlerBuilder Configure(this ISocketsHttpHandlerBuilder builder, Action<SocketsHttpHandler, IServiceProvider> configure)
34if (b.PrimaryHandler is not SocketsHttpHandler socketsHttpHandler)
36string message = SR.Format(SR.SocketsHttpHandlerBuilder_PrimaryHandlerIsInvalid, nameof(b.PrimaryHandler), typeof(SocketsHttpHandler).FullName, Environment.NewLine, b.PrimaryHandler?.ToString() ?? "(null)");
47/// Uses <see cref="IConfiguration"/> to configure the primary <see cref="SocketsHttpHandler"/> for a
51/// <param name="configuration">Configuration containing properties of <see cref="SocketsHttpHandler"/>.</param>
55/// Only simple (of type `bool`, `int`, <see cref="Enum"/> or <see cref="TimeSpan"/>) properties of <see cref="SocketsHttpHandler"/> will be parsed.
69private static void FillFromConfig(SocketsHttpHandler handler, in SocketsHttpHandlerConfiguration config)
195PooledConnectionIdleTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.PooledConnectionIdleTimeout)]),
196PooledConnectionLifetime = ParseTimeSpan(config[nameof(SocketsHttpHandler.PooledConnectionLifetime)]),
197PreAuthenticate = ParseBool(config[nameof(SocketsHttpHandler.PreAuthenticate)]),
198ResponseDrainTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.ResponseDrainTimeout)]),
199UseCookies = ParseBool(config[nameof(SocketsHttpHandler.UseCookies)]),
200UseProxy = ParseBool(config[nameof(SocketsHttpHandler.UseProxy)]),
201EnableMultipleHttp2Connections = ParseBool(config[nameof(SocketsHttpHandler.EnableMultipleHttp2Connections)]),
202MaxResponseHeadersLength = ParseInt(config[nameof(SocketsHttpHandler.MaxResponseHeadersLength)]),
203MaxResponseDrainSize = ParseInt(config[nameof(SocketsHttpHandler.MaxResponseDrainSize)]),
204MaxConnectionsPerServer = ParseInt(config[nameof(SocketsHttpHandler.MaxConnectionsPerServer)]),
205MaxAutomaticRedirections = ParseInt(config[nameof(SocketsHttpHandler.MaxAutomaticRedirections)]),
206InitialHttp2StreamWindowSize = ParseInt(config[nameof(SocketsHttpHandler.InitialHttp2StreamWindowSize)]),
207AllowAutoRedirect = ParseBool(config[nameof(SocketsHttpHandler.AllowAutoRedirect)]),
208AutomaticDecompression = ParseEnum<DecompressionMethods>(config[nameof(SocketsHttpHandler.AutomaticDecompression)]),
209ConnectTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.ConnectTimeout)]),
210Expect100ContinueTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.Expect100ContinueTimeout)]),
211KeepAlivePingDelay = ParseTimeSpan(config[nameof(SocketsHttpHandler.KeepAlivePingDelay)]),
212KeepAlivePingTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.KeepAlivePingTimeout)]),
213KeepAlivePingPolicy = ParseEnum<HttpKeepAlivePingPolicy>(config[nameof(SocketsHttpHandler.KeepAlivePingPolicy)])
Microsoft.Extensions.ServiceDiscovery (1)
Sockets.FunctionalTests (1)
System.Net.Http (13)
System.Net.Requests (2)
System.Net.WebSockets.Client (1)