Last change
on this file since 334 was 325, checked in by alloc, 6 years ago |
Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)
|
File size:
441 bytes
|
Rev | Line | |
---|
[325] | 1 | using System.Net;
|
---|
[251] | 2 | using System.Text;
|
---|
| 3 |
|
---|
[325] | 4 | namespace AllocsFixes.NetConnections.Servers.Web.API {
|
---|
| 5 | public class Null : WebAPI {
|
---|
| 6 | public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user,
|
---|
| 7 | int permissionLevel) {
|
---|
| 8 | resp.ContentLength64 = 0;
|
---|
| 9 | resp.ContentType = "text/plain";
|
---|
| 10 | resp.ContentEncoding = Encoding.ASCII;
|
---|
[251] | 11 | resp.OutputStream.Write (new byte[] { }, 0, 0);
|
---|
[325] | 12 | }
|
---|
| 13 | }
|
---|
| 14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.