using System.Text; namespace Webserver.WebAPI { public class Null : AbsWebAPI { public Null (string _name) : base(_name) { } public override void HandleRequest (RequestContext _context) { _context.Response.ContentLength64 = 0; _context.Response.ContentType = "text/plain"; _context.Response.ContentEncoding = Encoding.ASCII; _context.Response.OutputStream.Write (new byte[] { }, 0, 0); } } }