NetRequestBody

class NetRequestBody(body: RequestBody, progressListeners: ConcurrentLinkedQueue<ProgressListener>?) : RequestBody

Functions

contentLength
Link copied to clipboard
open override fun contentLength(): Long
contentType
Link copied to clipboard
open override fun contentType(): MediaType?
peekBytes
Link copied to clipboard
fun peekBytes(byteCount: Long = 1024 * 1024): ByteString
复制一段指定长度的字符串内容
writeTo
Link copied to clipboard
open override fun writeTo(sink: BufferedSink)

Properties

contentLength
Link copied to clipboard
val contentLength: <ERROR CLASS>