Namespace: DafCore Phar: DafCore.phar Implements: IResponse
new Response(int $statusCode = 200, string $reasonPhrase = null)
int $statusCode
string $reasonPhrase
function Reset() : void
function Status(int $statusCode, string $reasonPhrase) : void
function Send(string $text, array $headers = null) : self
function Json(mixed $data, array $headers = null) : void
function Redirect(string $location) : void
function RedirectBack() : void
function Ok(mixed $obj, array $headers = null) : void
obj
function Created(mixed $obj, array $headers = null) : void
function InternalError(string $msg) : void
msg
function NoContent() : void
function BadRequest(string $msg) : void
function NotFound(string $msg) : void
function Forbidden(string $msg) : void
function Unauthorized(string $msg) : void