有没有办法知道OkHttp库中第一个字节的时间?目前,我的应用程序测量的总网络时间是TTLB (最后一个字节)。这只需测量execute()调用前后的时间即可。
到目前为止,我已经尝试过拦截器(https://github.com/square/okhttp/wiki/Interceptors),但是拦截器似乎不能服务于此目的。
任何指点或建议都将不胜感激!
发布于 2018-08-09 06:06:22
好的,进一步的研究让我想到了https://github.com/square/okhttp/wiki/Events,但它只在3.11版本之后才可用。
https://stackoverflow.com/questions/51755565
复制相似问题