Documentation ¶
Index ¶
- Variables
- func CopyMsgs(writeMutex *sync.Mutex, dest *websocket.Conn, src *websocket.Conn) error
- func CreateProxyHeaders(w http.ResponseWriter, r *http.Request) (http.Header, string, error)
- func DecodeSubprotocol(encodedProtocol string) (string, error)
- func FilterHeaders(r *http.Response) error
- func FilterResponseQuery(bodyBytes []byte, query url.Values) map[string]interface{}
- func KeepAlive(writeMutex *sync.Mutex, dest *websocket.Conn) error
- func SingleJoiningSlash(a, b string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderBlacklist = []string{"Cookie", "X-CSRFToken"}
Functions ¶
func CreateProxyHeaders ¶
func DecodeSubprotocol ¶
decodeSubprotocol decodes the impersonation "headers" on a websocket. Subprotocols don't allow '=' or '/'
func FilterHeaders ¶
These headers aren't things that proxies should pass along. Some are forbidden by http2. This fixes the bug where Chrome users saw a ERR_SPDY_PROTOCOL_ERROR for all proxied requests.
func FilterResponseQuery ¶ added in v0.0.2
func SingleJoiningSlash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.