FrmEcho: Debug handler that outputs all the request information.

This commit is contained in:
2015-05-24 15:58:38 +02:00
parent 1dd4841901
commit a8e1dc20c7
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Scrummer.Code.JSON;
namespace Scrummer.Code.Pages
{
public class FrmEcho : IHttpHandler
{
public bool IsReusable
{
get { return false; }
}
public void ProcessRequest(HttpContext context)
{
var jsonWritter = new JSONWriter(true);
context.Response.Write("<pre><code>");
context.Response.Write(jsonWritter.Write(context.Request));
context.Response.Write("</code></pre>");
}
}
}

View File

@@ -77,6 +77,7 @@
<Compile Include="Code\Controls\CLabel.cs" /> <Compile Include="Code\Controls\CLabel.cs" />
<Compile Include="Code\GlobalErrorHandler.cs" /> <Compile Include="Code\GlobalErrorHandler.cs" />
<Compile Include="Code\JSON\ParserContext.cs" /> <Compile Include="Code\JSON\ParserContext.cs" />
<Compile Include="Code\Pages\FrmEcho.cs" />
<Compile Include="Code\ScriptsBundler.cs" /> <Compile Include="Code\ScriptsBundler.cs" />
<Compile Include="Code\StylesBundler.cs" /> <Compile Include="Code\StylesBundler.cs" />
<Compile Include="GlobalRouter.cs" /> <Compile Include="GlobalRouter.cs" />