FrmEcho: Debug handler that outputs all the request information.
This commit is contained in:
24
Scrummer/Code/Pages/FrmEcho.cs
Normal file
24
Scrummer/Code/Pages/FrmEcho.cs
Normal 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>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user