Added support for HTTP proxies. Tested on iOS, should also work on macOS.