File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import FoundationNetworking
88import os. log
99#endif
1010
11+ typealias HeaderTransform = ( [ String : String ] ) -> [ String : String ]
12+
1113public class EventSource {
1214 private let esDelegate : EventSourceDelegate
1315
@@ -56,7 +58,7 @@ public class EventSource {
5658 /// Additional headers to be set on the request
5759 public var headers : [ String : String ] = [ : ]
5860 /// Provides the ability to add conditional headers
59- public var extraHeaders : ( [ String : String ] ) -> [ String : String ] = { $0 }
61+ public var extraHeaders : HeaderTransform = { $0 }
6062 /// The minimum amount of time to wait before reconnecting after a failure
6163 public var reconnectTime : TimeInterval = 1.0
6264 /// The maximum amount of time to wait before reconnecting after a failure
You can’t perform that action at this time.
0 commit comments