A robust lightweight wrapper for asynchronous http requests