public final class FormBody extends RequestBody
| 限定符和类型 | 类和说明 |
|---|---|
static class |
FormBody.Builder |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
Returns the number of bytes that will be written to
sink in a call to RequestBody.writeTo(com.lark.oapi.okio.BufferedSink),
or -1 if that count is unknown. |
MediaType |
contentType()
Returns the Content-Type header for this body.
|
String |
encodedName(int index) |
String |
encodedValue(int index) |
String |
name(int index) |
int |
size()
The number of key-value pairs in this form-encoded body.
|
String |
value(int index) |
void |
writeTo(BufferedSink sink)
Writes the content of this request to
sink. |
public int size()
public String encodedName(int index)
public String name(int index)
public String encodedValue(int index)
public String value(int index)
public MediaType contentType()
RequestBodycontentType 在类中 RequestBodypublic long contentLength()
RequestBodysink in a call to RequestBody.writeTo(com.lark.oapi.okio.BufferedSink),
or -1 if that count is unknown.contentLength 在类中 RequestBodypublic void writeTo(BufferedSink sink) throws IOException
RequestBodysink.writeTo 在类中 RequestBodyIOExceptionCopyright © 2024. All rights reserved.