Android uses Apache's HTTP Components library to perform HTTP requests and exposes an API that doesn't support asynchronous requests or pipelining. We're writing an app that would benefit from pipelining so we are using Hotpotato to perform those requests. In an effort to reduce the size of the APK (Hotpotato and Netty add ~2-4MB to the APK size) we're looking to implement our own on top of HttpCore and HttpNIO.
The Apache NIO extensions docs have an obscure reference to pipelining, mentioning that "non-blocking HTTP connections [are] fully pipelining capable", and there's a bug on the HttpClient code that mentions pipelining support, but there's no mention of how to implement it.
How do I use Apache's HTTP Components to implement support for HTTP pipelining and persistent connections on top of Android's existing Apache HTTP components libraries?