index.md 1.4 KB

net / com.drake.net.body / NetRequestBody

NetRequestBody

class NetRequestBody : RequestBody

Constructors

Name Summary
<init> NetRequestBody(requestBody: RequestBody, progressListeners:ConcurrentLinkedQueue<ProgressListener>? = null)

Properties

Name Summary
contentLength val contentLength: <ERROR CLASS>

Functions

Name Summary
contentLength fun contentLength():Long
contentType fun contentType(): MediaType?
peekString 复制一段指定长度的字符串内容fun peekString(byteCount:Long= 1024 * 1024, discard:Boolean= false):String
writeTo fun writeTo(sink: BufferedSink):Unit