Constructor.
int $status HTTP Status code:
array $headers The HTTP response headers:
string $body The content of the response:
string $version The HTTP Version (1.0 or 1.1):
string $message The HTTP response Message:
object EasyRdf_Http_Response
public function __construct($status, $headers, $body = null, $version = '1.1', $message = null) {
$this->status = intval($status);
$this->body = $body;
$this->version = $version;
$this->message = $message;
foreach ($headers as $k => $v) {
$k = ucwords(strtolower($k));
$this->headers[$k] = $v;
}
}