|
@@ -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()
|