Last change
on this file since 382 was 382, checked in by alloc, 2 years ago |
Switched to use SpaceWizards.HttpListener
|
File size:
658 bytes
|
Line | |
---|
1 | using System.Net;
|
---|
2 | using System.Text;
|
---|
3 | using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
|
---|
4 | using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
|
---|
5 |
|
---|
6 | namespace AllocsFixes.NetConnections.Servers.Web.API {
|
---|
7 | public class Null : WebAPI {
|
---|
8 | public Null (string _name) : base(_name) {
|
---|
9 | }
|
---|
10 |
|
---|
11 | public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
|
---|
12 | int _permissionLevel) {
|
---|
13 | _resp.ContentLength64 = 0;
|
---|
14 | _resp.ContentType = "text/plain";
|
---|
15 | _resp.ContentEncoding = Encoding.ASCII;
|
---|
16 | _resp.OutputStream.Write (new byte[] { }, 0, 0);
|
---|
17 | }
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.