Last change
on this file since 389 was 387, checked in by alloc, 2 years ago |
Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time
|
File size:
460 bytes
|
Rev | Line | |
---|
[383] | 1 | using System.Text;
|
---|
[251] | 2 |
|
---|
[325] | 3 | namespace AllocsFixes.NetConnections.Servers.Web.API {
|
---|
[387] | 4 | public class Null : AbsWebAPI {
|
---|
[367] | 5 | public Null (string _name) : base(_name) {
|
---|
| 6 | }
|
---|
| 7 |
|
---|
[387] | 8 | public override void HandleRequest (RequestContext _context) {
|
---|
| 9 | _context.Response.ContentLength64 = 0;
|
---|
| 10 | _context.Response.ContentType = "text/plain";
|
---|
| 11 | _context.Response.ContentEncoding = Encoding.ASCII;
|
---|
| 12 | _context.Response.OutputStream.Write (new byte[] { }, 0, 0);
|
---|
[325] | 13 | }
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.