HBResponseBodyStreamer

public protocol HBResponseBodyStreamer

Object supplying bytebuffers for a response body

  • Undocumented

    Declaration

    Swift

    func read(on eventLoop: EventLoop) -> EventLoopFuture<HBResponseBody.StreamResult>
  • write(on:_:) Extension method

    Call closure for every ByteBuffer streamed

    Declaration

    Swift

    func write(on eventLoop: EventLoop, _ writeCallback: @escaping (ByteBuffer) -> Void) -> EventLoopFuture<Void>

    Return Value

    When everything has been streamed