Skip to content

Commit 3445d15

Browse files
committed
timeout for http delivery is now set globally and can be overriden
Signed-off-by: Quickthyme <[email protected]>
1 parent 8c3b506 commit 3445d15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import Foundation
33
open class HTTPWebRequestDelivery : NSObject, WebRequestDelivery {
44
public typealias ErrorCode = WebRequest.Result.ErrorCode
55

6-
public let timeoutInterval: TimeInterval = 60.0
6+
public static var timeout: TimeInterval = 60.0
7+
8+
public var timeoutInterval: TimeInterval {
9+
return type(of: self).timeout
10+
}
711

812
open func deliver(request:WebRequest) throws {
913

0 commit comments

Comments
 (0)