Initializersoto-core 7.4.0SotoCore
init(buffer:)
AWSHTTPBody.swift:34init(buffer: ByteBuffer)
init(buffer: ByteBuffer)
s8SotoCore11AWSHTTPBodyV6bufferAC7NIOCore10ByteBufferV_tcfc
What are these?2NPJP
import SotoCore
struct AWSHTTPBody
Storage for HTTP body which can be either a ByteBuffer or an AsyncSequence of ByteBuffers
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
init()
init<BufferSequence>(asyncSequence: BufferSequence, length: Int?) where BufferSequence : Sendable, BufferSequence : AsyncSequence, BufferSequence.Element == ByteBuffer
init<BufferSequence>(asyncSequence: BufferSequence, length: Int?) where BufferSequence : Sendable, BufferSequence : AsyncSequence, BufferSequence.Element : Collection, BufferSequence.Element : Sendable, BufferSequence.Element.Element == UInt8
init(bytes: some Collection<UInt8>, byteBufferAllocator: ByteBufferAllocator = .init())
init(from decoder: Decoder) throws
init(string: String, byteBufferAllocator: ByteBufferAllocator = .init())
var isEmpty: Bool { get }
var isStreaming: Bool { get }
var length: Int? { get }
func collect(upTo length: Int) async throws -> ByteBuffer
func encode(to encoder: Encoder) throws
func makeAsyncIterator() -> AsyncIterator
typealias AsyncIterator = AnyAsyncSequence<ByteBuffer>.AsyncIterator
typealias Element = ByteBuffer