ws/internal/http/upgrade/response/types.go

16 lines
379 B
Go
Raw Normal View History

package response
// Constant
2018-09-29 12:39:12 +00:00
const HttpVersion = "1.1"
const WSVersion = 13
var WSSalt []byte = []byte("258EAFA5-E914-47DA-95CA-C5AB0DC85B11")
// T represents an HTTP Upgrade Response
type T struct {
code StatusCode // status code
accept []byte // processed from Sec-WebSocket-Key
protocol []byte // set from Sec-WebSocket-Protocol or none if not received
2018-09-29 12:39:12 +00:00
}