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.

20 lines
638 B

using System.IO;
using System.Net;
using System.Text;
namespace ET
{
[HttpHandler(SceneType.Process,"/")]
public class HttpTestHandler:IHttpHandler
{
public ETTask Handle(Entity domain, HttpListenerContext context)
{
HttpListenerRequest request = context.Request;
HttpListenerResponse response = context.Response;
StreamReader stream = new StreamReader(request.InputStream, Encoding.UTF8);
string jsonstr = stream.ReadLine();
Log.Info("HttpTestHandler======================================");
return ETTask.Create();
}
}
}