StreamWriter

public struct StreamWriter

Chunk provider.

  • Create new StreamWriter

    Declaration

    Swift

    public init(closure: @escaping (IOData) -> EventLoopFuture<Void>)

    Parameters

    closure

    function that will be called to write actual bytes to the channel.

  • Write data to server.

    Declaration

    Swift

    public func write(_ data: IOData) -> EventLoopFuture<Void>

    Parameters

    data

    IOData to write.