I have some doubts about the usefulness of Server.ConnContext, given that it exposes the underlying network connection.
IMHO, the only things that can be obtained by net.Conn are the local address (already in LocalAddrContextKey) and the remote address and the TLS info (already in Request).
The only advantage of ConnContext is that it will be called before all the handlers.
On the other way, ConnContext can easily be abused:
The use case of the example is an handler that want to return an SSE response.
Thanks
Manlio Perillo