package com.njzscloud.common.core.http.interceptor;


import com.njzscloud.common.core.http.support.RequestInfo;
import com.njzscloud.common.core.http.support.ResponseInfo;

import java.lang.reflect.Type;

/**
 * 响应拦截器, 在请求之后触发,
 * 无论请求是否成功或是发生异常都会调用,
 * 可用于响应结果解析
 */
public interface ResponseInterceptor {

    Object process(RequestInfo requestInfo, ResponseInfo responseInfo, Type responseType);
}
