useless type
This commit is contained in:
parent
166eba3e28
commit
507cef8bce
1 changed files with 0 additions and 1 deletions
1
api.go
1
api.go
|
@ -23,7 +23,6 @@ const DEFAULTHTTPHOST string = "127.0.0.1"
|
||||||
const DEFAULTHTTPPORT int = 4243
|
const DEFAULTHTTPPORT int = 4243
|
||||||
|
|
||||||
type HttpApiFunc func(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error
|
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) {
|
func hijackServer(w http.ResponseWriter) (io.ReadCloser, io.Writer, error) {
|
||||||
conn, _, err := w.(http.Hijacker).Hijack()
|
conn, _, err := w.(http.Hijacker).Hijack()
|
||||||
|
|
Loading…
Add table
Reference in a new issue