对于我的所有请求,我添加了一个RequestInterceptor,它将为我的所有请求添加一个头(授权)。在RequestInterceptor中,我对当前的access_token调用一个方法,然后将头填充到请求中。RequestInterceptorrequestInterceptor = new RequestInterceptor() {
public void intercept= new RestAdapter.Builder()
.setE
我尝试了多种方法,包括RequestInterceptor。下面是我尝试使用RequestInterceptor的一小段代码,但它没有给我实际的超文本传输协议状态码,只有常量值,这是我不想要的。/*************requestinterceptor.h**************/#define REQUESTINTERCEPTOR_H: public QWebEngineUrlRequestInterceptor