You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ClientRuntime/Networking/Http/HttpClientConfiguration.swift
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,12 @@ public class HttpClientConfiguration {
29
29
/// If none is provided, defaults to no extra headers.
30
30
publicvardefaultHeaders:Headers
31
31
32
+
/// The maximum connections the HTTP client makes per host or per endpoint depending on the OS.
33
+
///
34
+
/// For Apple platforms, it will be per host.
35
+
/// For Linux, it will be per endpoint (protocol + host + port).
36
+
publicvarmaxConnections:Int
37
+
32
38
// add any other properties here you want to give the service operations
33
39
// control over to be mapped to the Http Client
34
40
@@ -56,19 +62,30 @@ public class HttpClientConfiguration {
56
62
/// Note that certain headers may cause your API request to fail. Defaults to no headers.
57
63
/// - protocolType: The HTTP scheme (`http` or `https`) to be used for API requests. Defaults to the operation's standard configuration.
58
64
/// - tlsConfiguration: Optional custom TLS configuration for HTTPS requests. If `nil`, defaults to a standard configuration.
65
+
/// - maxConnections: The maximum number of connections the HTTP client makes per host (for Apple platforms) or per endpoint (for Linux). For non-mac Apple platforms, defaults to 6. For macOS and Linux, defaults to 50.
0 commit comments