Last change
on this file since 386 was 367, checked in by alloc, 3 years ago |
Web:
- Added SSE (ServerSentEvents) subsystem
- Added log endpoint to SSE. Less heavy weight and more responsive way of watching the server log
- Bunch of refactoring
|
File size:
504 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 {
|
---|
[367] | 6 | public Null (string _name) : base(_name) {
|
---|
| 7 | }
|
---|
| 8 |
|
---|
[351] | 9 | public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
|
---|
| 10 | int _permissionLevel) {
|
---|
| 11 | _resp.ContentLength64 = 0;
|
---|
| 12 | _resp.ContentType = "text/plain";
|
---|
| 13 | _resp.ContentEncoding = Encoding.ASCII;
|
---|
| 14 | _resp.OutputStream.Write (new byte[] { }, 0, 0);
|
---|
[325] | 15 | }
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.