public class RequestBodyChild
extends com.squareup.okhttp.RequestBody
| Constructor and Description |
|---|
RequestBodyChild() |
| Modifier and Type | Method and Description |
|---|---|
com.squareup.okhttp.MediaType |
contentType() |
static com.squareup.okhttp.RequestBody |
create(com.squareup.okhttp.MediaType contentType,
String content)
Returns a new request body that transmits
content. |
void |
writeTo(okio.BufferedSink sink) |
public com.squareup.okhttp.MediaType contentType()
contentType in class com.squareup.okhttp.RequestBodypublic void writeTo(okio.BufferedSink sink)
throws IOException
writeTo in class com.squareup.okhttp.RequestBodyIOExceptionpublic static com.squareup.okhttp.RequestBody create(com.squareup.okhttp.MediaType contentType,
String content)
content. If contentType is non-null and lacks a charset, this will use UTF-8.contentType - - content typecontent - -request bodyCopyright © 2018. All rights reserved.