Using Java NIO for Http Pipeline

While researching the Internet, I found that the HTTP pipelined protocol is much faster and more efficient (especially for mobile devices) than in a queue or parallel connections. However, support from shared libraries is low. More recently, the widespread Apache HttpCore project has received support through its NIO module.

At least he says so Wikipedia and a few places in the documentation. My problem is that I could not find examples or tutorials on how to use this to send simple queries across channels. Neither the HttpCore NIO docs nor Googleearch codes gave me anything similar to Http pipelining.

Can you give me a simple example of how to use this module to send two incoming handsets and answer two answers?

+3
source share
2 answers

I would wait until Android gets the correct implementation. If Google didn't bother to use it, it might just not be worth all the trouble.

+2
source

Source: https://habr.com/ru/post/1760904/


All Articles