Is there an easy way to make an HTTP request over an existing socket in Python?
I've seen this answer, which amounts to overriding http.client.HTTPConnection
and could be adapted to my needs, but it seems to me there must be an easier way.
In my particular case, I want to make a request over an SSH channel, not a socket, but the interface is the same enough that they should be indistinguishable.