Class Info |
|---|
public abstract class Interceptor 拦截器。 |
Qualifier and Type | Class Name and Description |
|---|---|
public abstract static class | 拦截器链。 |
Qualifier and Type | Method Name and Description |
|---|---|
public abstract Response<ResponseBody> | intercept(Interceptor.Chain chain) 执行请求。 |
Method |
|---|
public abstract Response<ResponseBody> intercept(Interceptor.Chain chain) throws IOException 执行请求。 |
Parameters
Name | Description |
|---|---|
chain | 拦截器链。 |
Returns
Type | Description |
|---|---|
响应结果。 |
Throws
Name | Description |
|---|---|
IOException | 如果在此过程中发生IOException将抛出异常。 |