I don't think you should use HttpUrlConnection unless you first tests that it disables the Nagle algorithm on the underlying socket. The client has to disable this or each request will take 200 ms.
See java.net.Socket.setNoDelay() and Stevens' Network Programming.