useless type
Upstream-commit: 507cef8bcea5b56d25d34ca7073c46f608962f19 Component: engine
This commit is contained in:
@ -23,7 +23,6 @@ const DEFAULTHTTPHOST string = "127.0.0.1"
|
||||
const DEFAULTHTTPPORT int = 4243
|
||||
|
||||
type HttpApiFunc func(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error
|
||||
type WsApiFunc func(srv *Server, ws *websocket.Conn, vars map[string]string) error
|
||||
|
||||
func hijackServer(w http.ResponseWriter) (io.ReadCloser, io.Writer, error) {
|
||||
conn, _, err := w.(http.Hijacker).Hijack()
|
||||
|
||||
Reference in New Issue
Block a user