using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Threading; using Sog; using SimpleHttpServer; using LitJson; namespace Operation { public class HttpErrorlogList : Singleton // singleton 单粒模式 只能new出一个 { public HttpResponse ProcessRequest(HttpRequest request) { TraceLog.Trace("HttpErrorlogList.ProccessRequest Method {0} url {1}", request.Method, request.Url); HttpQueryParams queryParams = new HttpQueryParams(request.Url,false); string content = queryParams.GetValue("content"); HttpResponse rsp = new HttpResponse { ContentAsUTF8 = "no process", ReasonPhrase = "OK", StatusCode = "200" }; new UploadClientError().ProccessRequest( rsp, request, queryParams); string contentJson = ""; rsp.ContentAsUTF8 = contentJson; TraceLog.Trace("HttpErrorlogList.ProccessRequest return content {0}", contentJson); return rsp; } } }