Add request class. Not really tested yet.
[rock.divinelegy.git] / Services / Http / IHttpResponse.php
1 <?php
2
3 namespace Services\Http;
4
5 interface IHttpResponse
6 {
7 // TODO: Maybe we want a method to do an internal redirect to a different controller.
8 // Maybe that should be done by the abstract controller class, though?
9 public function setStatusCode($code);
10 public function setHeader($name, $value);
11 public function getHeaders();
12 public function setBody($body);
13 public function getBody();
14 public function isRedirect();
15 public function sendResponse();
16 }