Exemple #1
0
 function logRequestStart(k_Context $context)
 {
     $this->write('(request' . "\n" . '  (time "' . date("Y-m-d H:i:s") . '")' . "\n" . '  (method "' . $context->method() . '")' . "\n" . '  (request-uri "' . addslashes($context->requestUri()) . '")' . "\n" . '  (headers ' . $this->indent($this->dumper->dump($context->header())) . "))" . "\n");
 }
 /**
  * @return string
  */
 function method()
 {
     return $this->context->method();
 }