You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
1 month ago
|
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<HttpErrorlogList> // 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;
|
||
|
}
|
||
|
}
|
||
|
}
|