我可以在正常HTTPURLConnection请求上设置 Auth Header,如下所示:
URL url = new URL(source);  
HttpURLConnection connection = this.client.open(url);  
connection.setRequestMethod("GET");  
connection.setRequestProperty("Authorization", "Bearer " + token);  
这是 HttpURLConnection 的标准。上面的代码片段this.client是 Square 的一个实例OkHTTPClient(这里)。
我想知道是否有一种OkHTTP特定的方式来设置 Auth Header?我看到了OkAuthenticator课程,但不清楚如何准确使用它/看起来它只处理身份验证挑战。
在此先感谢您的任何指点。