bytes(_:)

Create and stream body using a collection of bytes.

HTTPHandler.swift:185
@preconcurrency static func bytes<Bytes>(_ bytes: Bytes) -> Body where Bytes : RandomAccessCollection, Bytes : Sendable, Bytes.Element == UInt8

Parameters

bytes

Body binary representation.