I have a server on an internal network that can only reach the internet through an http proxy so requests to get COGs on the internet were failing.
I updated the HTTP client in cog-rangereader-http to use a proxy if the HTTP_PROXY_HOST and HTTP_PROXY_PORT environment variables are set. This has been working fine on my own setup, but I'm not sure how to write a good test for this.
I have a server on an internal network that can only reach the internet through an http proxy so requests to get COGs on the internet were failing.
I updated the HTTP client in cog-rangereader-http to use a proxy if the HTTP_PROXY_HOST and HTTP_PROXY_PORT environment variables are set. This has been working fine on my own setup, but I'm not sure how to write a good test for this.