Bytes
Properties
Inherited properties
Link copied to clipboard
Specifies the length of this HttpBody content If null it is assumed to be a streaming source using e.g. Transfer-Encoding: Chunked
Link copied to clipboard
Functions
Inherited functions
Link copied to clipboard
Convert an HttpBody variant to the corresponding ByteStream variant or null if empty.
Link copied to clipboard
Convert an HttpBody with an underlying HashingSource or HashingByteReadChannel to a CompletingSource or CompletingByteReadChannel, respectively.
Link copied to clipboard
fun HttpBody.toHashingBody(hashFunction: <Error class: unknown class>, contentLength: Long?): HttpBody
Convert an HttpBody.SourceContent or HttpBody.ChannelContent to a body with a HashingSource or HashingByteReadChannel, respectively.
Link copied to clipboard
fun HttpBody.toSdkByteReadChannel(scope: <Error class: unknown class>? = null): <Error class: unknown class>?
Convenience function to treat all HttpBody variants with a payload as an SdkByteReadChannel