Skip to content

Initializer

init(managedAsyncStream:byteBufferAllocator:)

Creates a managed chunked HTTP Response steam using AsyncBodyStreamWriter that automtically closes or fails based if the closure throws an error or returns.
init(managedAsyncStream: @escaping @Sendable (any AsyncBodyStreamWriter) async throws -> (), byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator())

Parameters

byteBufferAllocator

The allocator that is preferred when writing data to SwiftNIO