public class ProgressResponseBody
extends okhttp3.ResponseBody
| 构造器和说明 |
|---|
ProgressResponseBody(okhttp3.Response response,
OnProgressListener callback)
构造函数,赋值
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
重写调用实际的响应体的contentLength
|
okhttp3.MediaType |
contentType()
重写调用实际的响应体的contentType
|
okio.BufferedSource |
source()
重写进行包装source
|
public ProgressResponseBody(okhttp3.Response response,
OnProgressListener callback)
response - 响应体callback - 回调接口public okhttp3.MediaType contentType()
contentType 在类中 okhttp3.ResponseBodypublic long contentLength()
contentLength 在类中 okhttp3.ResponseBodypublic okio.BufferedSource source()
source 在类中 okhttp3.ResponseBody