Beispiel #1
0
 public function execute(RestServer $rest)
 {
     if ($rest->getRequesT()->isPost()) {
         $rest->getResponse()->addHeader("HTTP/1.1 201 Created");
         $rest->getResponse()->setResponse($rest->getBaseUrl() . "/server.php?q=/Foo/bar");
     } else {
         $rest->getResponse()->setResponse("Hello World!");
     }
     return $rest;
 }