diff --git a/http.go b/http.go deleted file mode 100644 index a45134d42c07d2e7bc36d01e9a3ab0a55ac1ed5c..0000000000000000000000000000000000000000 --- a/http.go +++ /dev/null @@ -1,21 +0,0 @@ -package main - -import ( - "net/http" - "strconv" -) - -const ( - HttpOK = "HTTP/1.1 200 OK\r\n" - MethodRDGIN = "RDG_IN_DATA" - MethodRDGOUT = "RDG_OUT_DATA" -) - -// httpError is like the http.Error with WebSocket context exception. -func httpError(w http.ResponseWriter, body string, code int) { - w.Header().Set("Content-Type", "text/plain; charset=utf-8") - w.Header().Set("Content-Length", strconv.Itoa(len(body))) - w.WriteHeader(code) - w.Write([]byte(body)) -} -