From a8e1dc20c784aaedf119da1d163bfb0df906dafa Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Sun, 24 May 2015 15:58:38 +0200 Subject: [PATCH] FrmEcho: Debug handler that outputs all the request information. --- Scrummer/Code/Pages/FrmEcho.cs | 24 ++++++++++++++++++++++++ Scrummer/Scrummer.csproj | 1 + 2 files changed, 25 insertions(+) create mode 100644 Scrummer/Code/Pages/FrmEcho.cs diff --git a/Scrummer/Code/Pages/FrmEcho.cs b/Scrummer/Code/Pages/FrmEcho.cs new file mode 100644 index 0000000..88396dc --- /dev/null +++ b/Scrummer/Code/Pages/FrmEcho.cs @@ -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("
");
+            context.Response.Write(jsonWritter.Write(context.Request));
+            context.Response.Write("
"); + } + } +} \ No newline at end of file diff --git a/Scrummer/Scrummer.csproj b/Scrummer/Scrummer.csproj index 78959f7..06d8303 100644 --- a/Scrummer/Scrummer.csproj +++ b/Scrummer/Scrummer.csproj @@ -77,6 +77,7 @@ +