public class CountingRequestBody
extends okhttp3.RequestBody
| Modifier and Type | Class and Description |
|---|---|
protected class |
CountingRequestBody.CountingSink |
static interface |
CountingRequestBody.Listener |
| Modifier and Type | Field and Description |
|---|---|
protected CountingRequestBody.CountingSink |
countingSink |
protected okhttp3.RequestBody |
delegate |
protected CountingRequestBody.Listener |
listener |
| Constructor and Description |
|---|
CountingRequestBody(okhttp3.RequestBody delegate,
CountingRequestBody.Listener listener) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
okhttp3.MediaType |
contentType() |
void |
writeTo(okio.BufferedSink sink) |
protected okhttp3.RequestBody delegate
protected CountingRequestBody.Listener listener
protected CountingRequestBody.CountingSink countingSink
public CountingRequestBody(okhttp3.RequestBody delegate,
CountingRequestBody.Listener listener)
public okhttp3.MediaType contentType()
contentType in class okhttp3.RequestBodypublic long contentLength()
contentLength in class okhttp3.RequestBodypublic void writeTo(okio.BufferedSink sink)
throws IOException
writeTo in class okhttp3.RequestBodyIOException