@FunctionalInterface public interface OnRedirection
Modifier and Type | Method and Description |
---|---|
void |
onRedirection(ForestRequest<?> redirectReq,
ForestRequest<?> prevReq,
ForestResponse<?> prevRes)
回调函数:在请求重定向时触发
|
void onRedirection(ForestRequest<?> redirectReq, ForestRequest<?> prevReq, ForestResponse<?> prevRes)
redirectReq
- 进行重定向的新请求prevReq
- 上一个请求prevRes
- 上一个请求的响应Copyright © 2022. All rights reserved.