'How would I implement my proxy into a request with http.client?

headers = {
    'Authorization': 'Bearer '+jtw,
}
conn = http.client.HTTPSConnection("api.minecraftservices.com")
conn.request("PUT", "/minecraft/profile/name/"+user, headers=headers)
response = conn.getresponse()
status_code = response.status
resp = response.read().decode("utf-8")

^ My code Because http.client is not used much, I couldn't really find an answer on google. How would I add a proxy to this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source