toHashingBody
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.
Parameters
hashFunction
the hash function to wrap the body with
contentLength
the total content length of the source, if known