source: binary-improvements2/WebServer/src/WebAPI/Null.cs@ 405

Last change on this file since 405 was 404, checked in by alloc, 21 months ago

Latest state including reworking to the permissions system

File size: 455 bytes
Line 
1using System;
2using System.Text;
3
4namespace Webserver.WebAPI {
5 public class Null : AbsWebAPI {
6 public Null (string _name) : base(_name) {
7 }
8
9 public override void HandleRequest (RequestContext _context) {
10 _context.Response.ContentLength64 = 0;
11 _context.Response.ContentType = "text/plain";
12 _context.Response.ContentEncoding = Encoding.ASCII;
13 _context.Response.OutputStream.Write (Array.Empty<byte> (), 0, 0);
14 }
15 }
16}
Note: See TracBrowser for help on using the repository browser.