1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

removed websocket api

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-10-20 18:25:40 -07:00
parent 093e5c9ed6
commit 51723e4c7c

View File

@ -1,6 +1,7 @@
package echo
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
@ -16,8 +17,6 @@ import (
"time"
"golang.org/x/net/websocket"
"bytes"
)
type (
@ -27,18 +26,12 @@ type (
// Request returns `*http.Request`.
Request() *http.Request
// SetWebSocket sets `*http.Request`.
// SetRequest sets `*http.Request`.
SetRequest(*http.Request)
// Request returns `*Response`.
Response() *Response
// WebSocket returns `*websocket.Conn`.
WebSocket() *websocket.Conn
// SetWebSocket sets `*websocket.Conn`.
SetWebSocket(*websocket.Conn)
// IsTLS returns true if HTTP connection is TLS otherwise false.
IsTLS() bool
@ -220,14 +213,6 @@ func (c *context) Response() *Response {
return c.response
}
func (c *context) WebSocket() *websocket.Conn {
return c.webSocket
}
func (c *context) SetWebSocket(ws *websocket.Conn) {
c.webSocket = ws
}
func (c *context) IsTLS() bool {
return c.request.TLS != nil
}