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

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

Latest state including reworking to the permissions system

File size: 455 bytes
RevLine 
[404]1using System;
2using System.Text;
[391]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;
[404]13 _context.Response.OutputStream.Write (Array.Empty<byte> (), 0, 0);
[391]14 }
15 }
16}
Note: See TracBrowser for help on using the repository browser.