IsTCPStream discerns if the connection request needs a tcp stream proxy.
(r *http.Request)
| 416 | |
| 417 | // IsTCPStream discerns if the connection request needs a tcp stream proxy. |
| 418 | func IsTCPStream(r *http.Request) bool { |
| 419 | return r.Header.Get(InternalTCPProxySrcHeader) != "" |
| 420 | } |
| 421 | |
| 422 | func stripWebsocketUpgradeHeader(r *http.Request) { |
| 423 | r.Header.Del(InternalUpgradeHeader) |
no test coverage detected