HappyFunTimes.HFTWebServer.HandleNotFound C# (CSharp) Метод

HandleNotFound() приватный Метод

private HandleNotFound ( string path, WebSocketSharp.Net.HttpListenerRequest req, WebSocketSharp.Net.HttpListenerResponse res ) : bool
path string
req WebSocketSharp.Net.HttpListenerRequest
res WebSocketSharp.Net.HttpListenerResponse
Результат bool
        bool HandleNotFound(string path, HttpListenerRequest req, HttpListenerResponse res)
        {
            res.ContentType = "text/text";
            res.StatusCode = (int)HttpStatusCode.NotFound;
            res.WriteContent(System.Text.Encoding.UTF8.GetBytes("unknown path: " + path + "\n"));
            return true;
        }