Make HTTP request handling multi-threaded