mirror of
https://github.com/fruithost/Panel.git
synced 2026-10-23 19:46:45 +09:00
29 lines
669 B
PHP
29 lines
669 B
PHP
<?php
|
|
/**
|
|
* fruithost | OpenSource Hosting
|
|
*
|
|
* @author Adrian Preuß
|
|
* @version 1.0.0
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace fruithost\Network;
|
|
|
|
class Response {
|
|
public static function addHeader(string $name, string $value) : void {
|
|
ResponseFactory::getInstance()->addHeader($name, $value);
|
|
}
|
|
|
|
public static function header() : void {
|
|
ResponseFactory::getInstance()->header();
|
|
}
|
|
|
|
public static function setContentType(string $type) : void {
|
|
ResponseFactory::getInstance()->setContentType($type);
|
|
}
|
|
|
|
public static function redirect(string $url) : void {
|
|
ResponseFactory::getInstance()->redirect($url);
|
|
}
|
|
}
|
|
?>
|