| Line | |
|---|
| 1 | using System.Text;
|
|---|
| 2 | using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
|
|---|
| 3 | using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
|
|---|
| 4 |
|
|---|
| 5 | namespace AllocsFixes.NetConnections.Servers.Web.API {
|
|---|
| 6 | public class Null : WebAPI {
|
|---|
| 7 | public Null (string _name) : base(_name) {
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
|
|---|
| 11 | int _permissionLevel) {
|
|---|
| 12 | _resp.ContentLength64 = 0;
|
|---|
| 13 | _resp.ContentType = "text/plain";
|
|---|
| 14 | _resp.ContentEncoding = Encoding.ASCII;
|
|---|
| 15 | _resp.OutputStream.Write (new byte[] { }, 0, 0);
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.