摘要:
一、说明 官方原文如下: We hope the division between android.* and androidx.* makes it more obvious which APIs are bundled with the platform, and which are stati 阅读全文
摘要:
我们知道OkHttp走的并不是原生的http请求,因此在header里面并没有真正的User-Agent,而是“okhttp/版本号”这样的字符串,因为后台需要统计信息,要求传入正确的User-Agent,那么我们如何获取User-Agent并设置给Okhttp呢? 一、获取User-Agent p 阅读全文