|
Last change
on this file since 382 was 382, checked in by alloc, 3 years ago |
|
Switched to use SpaceWizards.HttpListener
|
|
File size:
658 bytes
|
| Rev | Line | |
|---|
| [325] | 1 | using System.Net;
|
|---|
| [251] | 2 | using System.Text;
|
|---|
| [382] | 3 | using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
|
|---|
| 4 | using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
|
|---|
| [251] | 5 |
|
|---|
| [325] | 6 | namespace AllocsFixes.NetConnections.Servers.Web.API {
|
|---|
| 7 | public class Null : WebAPI {
|
|---|
| [367] | 8 | public Null (string _name) : base(_name) {
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| [351] | 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);
|
|---|
| [325] | 17 | }
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.