Skip to content

Commit

Permalink
Make RequestBody.init(asyncSequence:) public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 4, 2024
1 parent b487c95 commit 877cb49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/HummingbirdCore/Request/RequestBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public struct RequestBody: Sendable, AsyncSequence {
self.init(.byteBuffer(buffer))
}

/// Initialise ``RequestBody`` from AsyncSequence of ByteBuffers
/// - Parameter asyncSequence: AsyncSequence
@inlinable
init<AS: AsyncSequence & Sendable>(asyncSequence: AS) where AS.Element == ByteBuffer {
public init<AS: AsyncSequence & Sendable>(asyncSequence: AS) where AS.Element == ByteBuffer {
self.init(.stream(.init(asyncSequence)))
}
}
Expand Down

0 comments on commit 877cb49

Please sign in to comment.