Okay so basically, I'm writing a piece of code that heavily depends on speed,
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")
I tried http.client, but apparently they don't support proxies, I want similar/same speed, and it needs to support proxies, my question now is.. what should I use?
http.client
does support proxies, seehttps://docs.python.org/3/library/http.client.html#http.client.HTTPConnection.set_tunnel
Concerning speed, a proxied HTTP request time is dominated by waiting for network responsens, so the various different overheads in
curl
,Socket
orhttp.client
are irrelevant, they will all have the same speed.