# Package com.drake.net.body

## Types

NetRequestBody
Link copied to clipboard
class NetRequestBody(requestBody: RequestBody, progressListeners: ConcurrentLinkedQueue<ProgressListener>?) : RequestBody
Content copied to clipboard
NetResponseBody
Link copied to clipboard
class NetResponseBody(responseBody: ResponseBody, progressListeners: ConcurrentLinkedQueue<ProgressListener>?, complete: () -> Unit?) : ResponseBody
Content copied to clipboard

## Functions

peekString
Link copied to clipboard
@JvmName(name = peekString)
fun RequestBody?.peekString(byteCount: Long = 1024 * 1024, discard: Boolean = false): String?
Content copied to clipboard
复制一段指定长度的字符串内容
fun ResponseBody?.peekString(byteCount: Long = 1024 * 1024 * 4, discard: Boolean = false): String?
Content copied to clipboard
复制一段指定长度的字符串内容
toNetRequestBody
Link copied to clipboard
fun RequestBody.toNetRequestBody(request: Request): NetRequestBody
Content copied to clipboard
toNetResponseBody
Link copied to clipboard
fun ResponseBody.toNetResponseBody(request: Request, complete: () -> Unit? = null): NetResponseBody
Content copied to clipboard