This permits the websocket handler to inspect http headers and such.
Fixes #1726.
R=ukai, bradfitz, bradfitzgo
CC=golang-dev
https://golang.org/cl/
4439069
return
}
ws := newConn(origin, location, protocol, buf, rwc)
+ ws.Request = req
f(ws)
}
"bufio"
"crypto/md5"
"encoding/binary"
+ "http"
"io"
"net"
"os"
Location string
// The subprotocol for the Web Socket.
Protocol string
+ // The initial http Request (for the Server side only).
+ Request *http.Request
buf *bufio.ReadWriter
rwc io.ReadWriteCloser