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

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

Fixed a bunch of warnings

File size: 639 bytes
Line 
1using System.Text;
2using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
3using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
4
5namespace AllocsFixes.NetConnections.Servers.Web.API {
6 public class Null : WebAPI {
7 public Null (string _name) : base(_name) {
8 }
9
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);
16 }
17 }
18}
Note: See TracBrowser for help on using the repository browser.