d2c8f7faa9d33828ae50e7cbd250294ff278e9b8
[rock.divinelegy.git] / Services / IHttpResponse.php
1 <?php
2
3 namespace Services;
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 }