Instance Propertysoto-core 7.4.0SotoCore
isEmpty
AWSHTTPBody.swift:77var isEmpty: Bool { get }
var isEmpty: Bool { get }
import SotoCore
struct AWSHTTPBody
Storage for HTTP body which can be either a ByteBuffer or an AsyncSequence of ByteBuffers
@frozen struct Bool
A value type whose instances are either true
or false
.
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(buffer: ByteBuffer)
init(bytes: some Collection<UInt8>, byteBufferAllocator: ByteBufferAllocator = .init())
init(from decoder: Decoder) throws
init(string: String, byteBufferAllocator: ByteBufferAllocator = .init())
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