Worker.ProcessRequest C# (CSharp) Method

ProcessRequest() public method

public ProcessRequest ( ) : void
return void
	public void ProcessRequest ()
	{
		string msg = context.Request.HttpMethod + " " + context.Request.Url;

		StringBuilder sb = new StringBuilder ();
		sb.Append ("<html><body><h1>" + msg + "</h1>");
		DumpRequest (context.Request, sb);
		sb.Append ("</body></html>");

		byte [] b = Encoding.UTF8.GetBytes (sb.ToString ());
		context.Response.ContentLength64 = b.Length;
		context.Response.OutputStream.Write (b, 0, b.Length);
		context.Response.OutputStream.Close ();
	}