Closed aviddiviner closed 6 years ago
Well, it turns out *WebsocketProxy is an http.Handler (it has a ServeHTTP method). So really, there's no need for the extra indirection in ProxyHandler. It's easier (and more performant) without wrapping it in the extra http.HandlerFunc.
*WebsocketProxy
ProxyHandler
Thanks @aviddiviner
Well, it turns out
*WebsocketProxy
is an http.Handler (it has a ServeHTTP method). So really, there's no need for the extra indirection inProxyHandler
. It's easier (and more performant) without wrapping it in the extra http.HandlerFunc.