class GzipRequestInterceptor extends Object implements okhttp3.Interceptor
| 构造器和说明 |
|---|
GzipRequestInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
private okhttp3.RequestBody |
forceContentLength(okhttp3.RequestBody requestBody) |
private okhttp3.RequestBody |
gzip(okhttp3.RequestBody body) |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionprivate okhttp3.RequestBody forceContentLength(okhttp3.RequestBody requestBody)
throws IOException
IOExceptionprivate okhttp3.RequestBody gzip(okhttp3.RequestBody body)
Copyright © 2024. All rights reserved.