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

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

Fixed a bunch of warnings

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