What is Nostr?
Nicolas Martyanoff /
npub1dkg…54dt
2024-11-15 08:52:14

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.
Author Public Key
npub1dkg70vzk4vvfsc5cup9gkfu2tcrs5unysl7npfvegf78nkuswr5skh54dt