diff --git a/Sources/HummingbirdCore/Request/RequestBody.swift b/Sources/HummingbirdCore/Request/RequestBody.swift index 9461fdc49..fe1315260 100644 --- a/Sources/HummingbirdCore/Request/RequestBody.swift +++ b/Sources/HummingbirdCore/Request/RequestBody.swift @@ -41,8 +41,10 @@ public struct RequestBody: Sendable, AsyncSequence { self.init(.byteBuffer(buffer)) } + /// Initialise ``RequestBody`` from AsyncSequence of ByteBuffers + /// - Parameter asyncSequence: AsyncSequence @inlinable - init(asyncSequence: AS) where AS.Element == ByteBuffer { + public init(asyncSequence: AS) where AS.Element == ByteBuffer { self.init(.stream(.init(asyncSequence))) } }