mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
useless type
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