类 FormBody
java.lang.Object
com.lark.oapi.okhttp.RequestBody
com.lark.oapi.okhttp.FormBody
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明longReturns the number of bytes that will be written tosinkin a call toRequestBody.writeTo(com.lark.oapi.okio.BufferedSink), or -1 if that count is unknown.Returns the Content-Type header for this body.encodedName(int index) encodedValue(int index) name(int index) intsize()The number of key-value pairs in this form-encoded body.value(int index) voidwriteTo(BufferedSink sink) Writes the content of this request tosink.
-
方法详细资料
-
size
public int size()The number of key-value pairs in this form-encoded body. -
encodedName
-
name
-
encodedValue
-
value
-
contentType
从类复制的说明:RequestBodyReturns the Content-Type header for this body.- 指定者:
contentType在类中RequestBody
-
contentLength
public long contentLength()从类复制的说明:RequestBodyReturns the number of bytes that will be written tosinkin a call toRequestBody.writeTo(com.lark.oapi.okio.BufferedSink), or -1 if that count is unknown.- 覆盖:
contentLength在类中RequestBody
-
writeTo
从类复制的说明:RequestBodyWrites the content of this request tosink.- 指定者:
writeTo在类中RequestBody- 抛出:
IOException
-