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
/// Sometimes it can be useful to connect to one host e.g. `x.example.com` but
812
813
/// request and validate the certificate chain as if we would connect to `y.example.com`.
813
814
/// ``dnsOverride`` allows to do just that by mapping host names which we will request and validate the certificate chain, to a different
@@ -817,7 +818,7 @@ public final class HTTPClient: Sendable {
817
818
/// `url` of `https://example.com/`, the ``HTTPClient`` will actually open a connection to `localhost` instead of `example.com`.
818
819
/// ``HTTPClient`` will still request certificates from the server for `example.com` and validate them as if we would connect to `example.com`.
819
820
publicvardnsOverride:[String:String]=[:]
820
-
821
+
821
822
/// Enables following 3xx redirects automatically.
822
823
///
823
824
/// Following redirects are supported:
@@ -841,24 +842,24 @@ public final class HTTPClient: Sendable {
841
842
/// Ignore TLS unclean shutdown error, defaults to `false`.
842
843
@available(
843
844
*,
844
-
deprecated,
845
-
message:
845
+
deprecated,
846
+
message:
846
847
"AsyncHTTPClient now correctly supports handling unexpected SSL connection drops. This property is ignored"
847
848
)
848
849
publicvarignoreUncleanSSLShutdown:Bool{
849
850
get{false}
850
851
set{}
851
852
}
852
-
853
+
853
854
/// What HTTP versions to use.
854
855
///
855
856
/// Set to ``HTTPVersion-swift.struct/automatic`` by default which will use HTTP/2 if run over https and the server supports it, otherwise HTTP/1
856
857
publicvarhttpVersion:HTTPVersion
857
-
858
+
858
859
/// Whether ``HTTPClient`` will let Network.framework sit in the `.waiting` state awaiting new network changes, or fail immediately. Defaults to `true`,
859
860
/// which is the recommended setting. Only set this to `false` when attempting to trigger a particular error path.
860
861
publicvarnetworkFrameworkWaitForConnectivity:Bool
861
-
862
+
862
863
/// The maximum number of times each connection can be used before it is replaced with a new one. Use `nil` (the default)
863
864
/// if no limit should be applied to each connection.
864
865
///
@@ -870,20 +871,35 @@ public final class HTTPClient: Sendable {
870
871
}
871
872
}
872
873
}
873
-
874
+
874
875
/// Whether ``HTTPClient`` will use Multipath TCP or not
875
876
/// By default, don't use it
876
877
publicvarenableMultipath:Bool
877
-
878
+
878
879
/// A method with access to the HTTP/1 connection channel that is called when creating the connection.
0 commit comments