Add option to allow overwriting the connect address
A related change to #10 (closed) and !1 (merged) would be to allow overwriting the connect address where requests
sends the HTTP requests to. This would allow flexible testing of production set-ups, connecting to a specific IP but treating the request/response as send to a known hostname, including full TLS checks. curl has --connect-to
for this but I don't know how to achieve this with requests
. Maybe the Host
header should be overwritten instead?