Retrofit2/OkHttp 重写覆盖headers 与 不重写覆盖Headers
台风海马来深圳了,下面的虽然是英文,但是感觉比中文更容易让人看懂 Add Request Headers Adding HTTP request headers is a good practice to add information for API requests. A common example is authorization using the Authorization header field. If you need the header field including its value on almost every request, you can use an interceptor to add this piece of information. This way, you don’t need to add the @Header annotation to every endpoint declaration. OkHttp interceptors offer two ways to add header fields and values. You can either override existing headers with the same key or just add them without checking if there