We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8031c46 commit 70ad494Copy full SHA for 70ad494
Sources/AsyncHTTPClient/HTTPHandler.swift
@@ -26,6 +26,14 @@ extension HTTPClient {
26
public struct StreamWriter {
27
let closure: (IOData) -> EventLoopFuture<Void>
28
29
+ /// Create new StreamWriter
30
+ ///
31
+ /// - parameters:
32
+ /// - closure: function that will be called to write actual bytes to the channel.
33
+ public init(closure: @escaping (IOData) -> EventLoopFuture<Void>) {
34
+ self.closure = closure
35
+ }
36
+
37
/// Write data to server.
38
///
39
/// - parameters:
0 commit comments