source:
binary-improvements2/WebServer/src/WebAPI/Null.cs@
392
| Last change on this file since 392 was 391, checked in by , 3 years ago | |
|---|---|
| File size: 434 bytes | |
| Line | |
|---|---|
| 1 | using System.Text; |
| 2 | |
| 3 | namespace Webserver.WebAPI { |
| 4 | public class Null : AbsWebAPI { |
| 5 | public Null (string _name) : base(_name) { |
| 6 | } |
| 7 | |
| 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); |
| 13 | } |
| 14 | } |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)