How do I do multiplexing on OkHttp?

可紊 提交于 2019-12-11 16:01:38

问题


I see some older questions about using SPDY (though the code has changed significantly since then), but no insights into how to properly leverage multiplexing and/or pipelining in OkHttp. I've gone through all the examples and have yet to see anything specifically referring to this.

Is this something that is automatically done?


回答1:


It’s automatic. If you have a server that supports HTTP/2, and a client that supports HTTP/2, it’ll do the right thing.



来源:https://stackoverflow.com/questions/49925071/how-do-i-do-multiplexing-on-okhttp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!