public interface Interceptor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterConnection(Connection connection,
Response response)
在http请求发送完毕之后
|
void |
beforeConnect(Connection connection)
在http请求发送之前
|
void beforeConnect(Connection connection)
connection - http 连接对象void afterConnection(Connection connection, Response response)
connection - 连接对象response - 返回对象Copyright © 2020. All rights reserved.