|
Last change
on this file since 464 was 404, checked in by alloc, 3 years ago |
|
Latest state including reworking to the permissions system
|
|
File size:
455 bytes
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Text;
|
|---|
| 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;
|
|---|
| 13 | _context.Response.OutputStream.Write (Array.Empty<byte> (), 0, 0);
|
|---|
| 14 | }
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.