SourceContent
Variant of an HttpBody with a streaming payload read from an SdkSource
Inherited properties
Specifies the length of this HttpBody content If null it is assumed to be a streaming source using e.g. Transfer-Encoding: Chunked
Functions
Provides SdkSource that will be sent to peer. Replayable streams (HttpBody.isOneShot = false
) MUST provide a fresh channel every time readFrom is invoked.
Inherited functions
Convert an HttpBody variant to the corresponding ByteStream variant or null if empty.
Convert an HttpBody with an underlying HashingSource or HashingByteReadChannel to a CompletingSource or CompletingByteReadChannel, respectively.
Convert an HttpBody.SourceContent or HttpBody.ChannelContent to a body with a HashingSource or HashingByteReadChannel, respectively.
Convenience function to treat all HttpBody variants with a payload as an SdkByteReadChannel