public IResponse Handle(IRequest req)
        {
            IUrl url = req.Url;              //url.Path == "/getTemperatures"

            if (url.Path == "/temperatures") //Return HTML-page temperatures
            {
                return(WebPagePlugin.CreateWebpageResponse("/temperatures"));
            }
            else //Return XML-file with temperatures
            {
                DateTime from     = Convert.ToDateTime(url.Parameter["from"]);
                DateTime until    = Convert.ToDateTime(url.Parameter["until"]);
                Response response = new Response();
                response.StatusCode  = 200;
                response.ContentType = "text/xml";
                response.SetContent(GetTemperaturesContentXML(from, until));
                return(response);
            }
        }
 public IResponse Handle(IRequest req)
 {
     return(WebPagePlugin.CreateWebpageResponse("/error"));
 }