proxy argument needed in client.Connection

Bug #1425283 reported by Fausto Marzi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

The swiftclient allows to explicitly set a proxy from the argument of client.HTTPConnection but not from client.Connection.

Would be an helpful feature to have, as Connection allows to use retry and retry_on_ratelimit while HTTPConnection don't.

Thanks,
Fausto

Revision history for this message
Fausto Marzi (fausto-marzi) wrote :

Looks like requests lib (swiftclient http libs user underneath) honor HTTP(S)_PROXY en var if set.
Not sure if the bug still makes sense. Probably the proxy arg would be needed only to override env var.

A possible work around can be with os.environ['HTTP_PROXY'] = 'http://proxy.example.com'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.