File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -935,6 +935,19 @@ extension HTTPClient.Configuration {
935
935
self . connect ?? . seconds( 10 )
936
936
}
937
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
+ public init (
944
+ connect: TimeAmount ? = nil ,
945
+ read: TimeAmount ? = nil
946
+ ) {
947
+ self . connect = connect
948
+ self . read = read
949
+ }
950
+
938
951
/// Create timeout.
939
952
///
940
953
/// - parameters:
@@ -944,7 +957,7 @@ extension HTTPClient.Configuration {
944
957
public init (
945
958
connect: TimeAmount ? = nil ,
946
959
read: TimeAmount ? = nil ,
947
- write: TimeAmount ? = nil
960
+ write: TimeAmount
948
961
) {
949
962
self . connect = connect
950
963
self . read = read
You can’t perform that action at this time.
0 commit comments