Last change
on this file since 432 was 404, checked in by alloc, 21 months ago |
Latest state including reworking to the permissions system
|
File size:
455 bytes
|
Rev | Line | |
---|
[404] | 1 | using System;
|
---|
| 2 | using System.Text;
|
---|
[391] | 3 |
|
---|
| 4 | namespace 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.