public class ProgressRequestBody<T>
extends RequestBody
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
ProgressRequestBody.UploadInterceptor |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
重写调用实际的响应体的contentLength
|
MediaType |
contentType()
重写调用实际的响应体的contentType
|
void |
setInterceptor(ProgressRequestBody.UploadInterceptor interceptor) |
void |
writeTo(BufferedSink sink)
重写进行写入
|
public MediaType contentType()
public long contentLength()
public void writeTo(BufferedSink sink)
throws java.io.IOException
java.io.IOExceptionpublic void setInterceptor(ProgressRequestBody.UploadInterceptor interceptor)