-
public final class FormBody extends RequestBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFormBody.Builder
-
Method Summary
Modifier and Type Method Description intsize()The number of key-value pairs in this form-encoded body. StringencodedName(int index)Stringname(int index)StringencodedValue(int index)Stringvalue(int index)MediaTypecontentType()Returns the Content-Type header for this body. longcontentLength()Returns the number of bytes that will be written to {@code sink}in a call to writeTo,or -1 if that count is unknown.voidwriteTo(BufferedSink sink)Writes the content of this mobonRequest to {@code sink}.-
-
Method Detail
-
size
int size()
The number of key-value pairs in this form-encoded body.
-
encodedName
String encodedName(int index)
-
encodedValue
String encodedValue(int index)
-
contentType
MediaType contentType()
Returns the Content-Type header for this body.
-
contentLength
long contentLength()
Returns the number of bytes that will be written to
{@code sink}in a call to writeTo,or -1 if that count is unknown.
-
writeTo
void writeTo(BufferedSink sink)
Writes the content of this mobonRequest to
{@code sink}.
-
-
-
-