public function testResponse($status, $charset, $args = null)
 {
     if ($args->language === null) {
         $args->language = "en-au";
     }
     if ($args->contentType === null) {
         $args->contentType = "text/html";
     }
     if ($args->content === null) {
         $args->content = "response content";
     }
     if ($args->cookieName === null) {
         $args->cookieName = "sessionid";
     }
     if ($args->cookieVal === null) {
         $args->cookieVal = "123456";
     }
     $this->context->response->status = $status;
     $this->context->response->charset = $charset;
     $this->context->response->set_contentType($args->contentType);
     $expiryDate = new Date(2015, 0, 1, 0, 0, 0);
     $c1 = new ufront_web_HttpCookie($args->cookieName, $args->cookieVal, $expiryDate, "/testresponse/", null, null, null);
     $this->context->response->setCookie($c1);
     $this->context->response->setHeader("X-Powered-By", "Ufront");
     $this->context->response->setHeader("Content-Language", $args->language);
     return haxe_Utf8::encode($args->content);
 }