source: binary-improvements/MapRendering/Web/API/Null.cs@ 408

Last change on this file since 408 was 367, checked in by alloc, 3 years ago

Web:

  • Added SSE (ServerSentEvents) subsystem
  • Added log endpoint to SSE. Less heavy weight and more responsive way of watching the server log
  • Bunch of refactoring
File size: 504 bytes
Line 
1using System.Net;
2using System.Text;
3
4namespace AllocsFixes.NetConnections.Servers.Web.API {
5 public class Null : WebAPI {
6 public Null (string _name) : base(_name) {
7 }
8
9 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
10 int _permissionLevel) {
11 _resp.ContentLength64 = 0;
12 _resp.ContentType = "text/plain";
13 _resp.ContentEncoding = Encoding.ASCII;
14 _resp.OutputStream.Write (new byte[] { }, 0, 0);
15 }
16 }
17}
Note: See TracBrowser for help on using the repository browser.