peekBytes

fun RequestBody.peekBytes(byteCount: Long = 1024 * 1024): ByteString
fun ResponseBody.peekBytes(byteCount: Long = 1024 * 1024): ByteString

复制一段指定长度的字符串内容

Parameters

byteCount

复制的字节长度, 允许超过实际长度, 如果-1则返回完整的字符串内容