I'm assuming you've seen http://http-kit.org/client.html#sync
My question is do you want to do a synchronous POST, or limit the number of threads? You can do a sync POST with 100 threads, it just so happens you're main thread will wait for the request to return.
Maybe more importantly, why do you want to limit the number of threads?
Also, see https://github.com/http-kit/http-kit/blob/master/src/org/httpkit/client.clj, specifically request
. You can handle it a map of arguments, like
{:url "http://yoursite.com" :worker-pool my-thread-pool-executor}
my-thread-pool-executor
has to extend ExecutorService.
Specifically, you need to overload submit
which is what the RespListener uses in http-kit. You could make submit
synchronous with your own ExecutorService implementation so it runs on the same thread.