We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5024ee6 commit e3155a0Copy full SHA for e3155a0
Sources/AsyncHTTPClient/HTTPClient.swift
@@ -935,6 +935,19 @@ extension HTTPClient.Configuration{
935
self.connect ??.seconds(10)
936
}
937
938
+ /// Create timeout.
939
+ ///
940
+ /// - parameters:
941
+ /// - connect: `connect` timeout. Will default to 10 seconds, if no value is provided.
942
+ /// - read: `read` timeout.
943
+publicinit(
944
+ connect:TimeAmount?=nil,
945
+ read:TimeAmount?=nil
946
+){
947
+self.connect = connect
948
+self.read = read
949
+}
950
+
951
/// Create timeout.
952
///
953
/// - parameters:
@@ -944,7 +957,7 @@ extension HTTPClient.Configuration{
957
publicinit(
958
connect:TimeAmount?=nil,
959
read:TimeAmount?=nil,
- write:TimeAmount?=nil
960
+ write:TimeAmount
961
){
962
self.connect = connect
963
self.read = read
0 commit comments