mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-27 08:59:28 +00:00
30 lines
451 B
PHP
Executable File
30 lines
451 B
PHP
Executable File
<?php
|
|
|
|
namespace Sabre\HTTP;
|
|
|
|
class ResponseMock extends Response {
|
|
|
|
public $headers = array();
|
|
public $status = '';
|
|
public $body = '';
|
|
|
|
function setHeader($name,$value,$overwrite = true) {
|
|
|
|
$this->headers[$name] = $value;
|
|
|
|
}
|
|
|
|
function sendStatus($code) {
|
|
|
|
$this->status = $this->getStatusMessage($code, $this->defaultHttpVersion);
|
|
|
|
}
|
|
|
|
function sendBody($body) {
|
|
|
|
$this->body = $body;
|
|
|
|
}
|
|
|
|
}
|