summaryrefslogtreecommitdiffstats
path: root/libgo/go/websocket/websocket.go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-20 00:18:15 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-20 00:18:15 +0000
commit84911de8492fb75007eec6bfa4abb7905439f93c (patch)
treec891bdec1e6f073f73fedeef23718bc3ac30d499 /libgo/go/websocket/websocket.go
parentad33e6a8510b48571eaef50af339892925108830 (diff)
downloadppe42-gcc-84911de8492fb75007eec6bfa4abb7905439f93c.tar.gz
ppe42-gcc-84911de8492fb75007eec6bfa4abb7905439f93c.zip
Update to current version of Go library.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/websocket/websocket.go')
-rw-r--r--libgo/go/websocket/websocket.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/go/websocket/websocket.go b/libgo/go/websocket/websocket.go
index d5996abe1a5..edde61b4a76 100644
--- a/libgo/go/websocket/websocket.go
+++ b/libgo/go/websocket/websocket.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// The websocket package implements a client and server for the Web Socket protocol.
+// Package websocket implements a client and server for the Web Socket protocol.
// The protocol is defined at http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol
package websocket
@@ -13,6 +13,7 @@ import (
"bufio"
"crypto/md5"
"encoding/binary"
+ "http"
"io"
"net"
"os"
@@ -43,6 +44,8 @@ type Conn struct {
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
OpenPOWER on IntegriCloud