public class ProcessRequestBody
extends okhttp3.RequestBody
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
ProcessRequestBody.Listener
回调接口
|
| 构造器和说明 |
|---|
ProcessRequestBody(okhttp3.RequestBody delegate,
ProcessRequestBody.Listener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
Returns the number of bytes that will be written to
out in a call to writeTo(okio.BufferedSink),
or -1 if that count is unknown. |
okhttp3.MediaType |
contentType()
Returns the Content-Type header for this body.
|
void |
writeTo(okio.BufferedSink sink)
Writes the content of this request to
out. |
public ProcessRequestBody(okhttp3.RequestBody delegate,
ProcessRequestBody.Listener listener)
public okhttp3.MediaType contentType()
contentType 在类中 okhttp3.RequestBodypublic long contentLength()
throws IOException
out in a call to writeTo(okio.BufferedSink),
or -1 if that count is unknown.contentLength 在类中 okhttp3.RequestBodyIOExceptionpublic void writeTo(okio.BufferedSink sink)
throws IOException
out.writeTo 在类中 okhttp3.RequestBodysink - BufferedSinkIOExceptionCopyright © 2017. All rights reserved.