Join Nostr
2024-11-15 08:52:14 UTC

Nicolas Martyanoff on Nostr: Fun fact, in #Go, you cannot hijack an http.Client or http.Transport connection. So ...

Fun fact, in #Go, you cannot hijack an http.Client or http.Transport connection. So if you're writing a reverse proxy and have to support connection upgrading, you have to implement the client part (to the upstream server) yourself with TCP sockets, http.Request.Write and http.ReadResponse. A bit annoying but it will give me more control anyway.