IsWebSocketUpgrade checks to see if the request is a WebSocket connection.
(req *http.Request)
| 10 | |
| 11 | // IsWebSocketUpgrade checks to see if the request is a WebSocket connection. |
| 12 | func IsWebSocketUpgrade(req *http.Request) bool { |
| 13 | return websocket.IsWebSocketUpgrade(req) |
| 14 | } |
| 15 | |
| 16 | // NewResponseHeader returns headers needed to return to origin for completing handshake |
| 17 | func NewResponseHeader(req *http.Request) http.Header { |
no outgoing calls