Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do multiplexing on OkHttp?

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?

like image 911
darkfrog Avatar asked May 31 '26 00:05

darkfrog


1 Answers

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.

like image 100
Jesse Wilson Avatar answered Jun 02 '26 01:06

Jesse Wilson