source: binary-improvements2/MapRendering/Web/API/Null.cs@ 382

Last change on this file since 382 was 382, checked in by alloc, 2 years ago

Switched to use SpaceWizards.HttpListener

File size: 658 bytes
RevLine 
[325]1using System.Net;
[251]2using System.Text;
[382]3using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
4using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
[251]5
[325]6namespace AllocsFixes.NetConnections.Servers.Web.API {
7 public class Null : WebAPI {
[367]8 public Null (string _name) : base(_name) {
9 }
10
[351]11 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
12 int _permissionLevel) {
13 _resp.ContentLength64 = 0;
14 _resp.ContentType = "text/plain";
15 _resp.ContentEncoding = Encoding.ASCII;
16 _resp.OutputStream.Write (new byte[] { }, 0, 0);
[325]17 }
18 }
19}
Note: See TracBrowser for help on using the repository browser.