Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Initializer

init(stream:)

Creates a chunked, streaming HTTP Response body of unknown length.
init(stream: @escaping @Sendable (borrowing any HTTPBodyWriter & ~Escapable) async throws -> Void)

Parameters

stream

The closure that writes the body chunks.

Discussion

See init(stream:count:) for the streaming semantics.