Upgrade to 3.3.0
This commit is contained in:
@@ -58,7 +58,7 @@ class Header
|
||||
*
|
||||
* @param string $mime
|
||||
* @param string $charset
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function contentType(string $mime, string $charset = 'UTF-8', bool $send = true)
|
||||
@@ -108,7 +108,7 @@ class Header
|
||||
*
|
||||
* @param string $mime
|
||||
* @param string $charset
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function type(string $mime, string $charset = 'UTF-8', bool $send = true)
|
||||
@@ -124,7 +124,7 @@ class Header
|
||||
* as 3 digits followed by a space and a message, e.g. '999 Custom Status'.
|
||||
*
|
||||
* @param int|string $code The HTTP status code
|
||||
* @param boolean $send If set to false the header will be returned instead
|
||||
* @param bool $send If set to false the header will be returned instead
|
||||
* @return string|void
|
||||
*/
|
||||
public static function status($code = null, bool $send = true)
|
||||
@@ -154,7 +154,7 @@ class Header
|
||||
/**
|
||||
* Sends a 200 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function success(bool $send = true)
|
||||
@@ -165,7 +165,7 @@ class Header
|
||||
/**
|
||||
* Sends a 201 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function created(bool $send = true)
|
||||
@@ -176,7 +176,7 @@ class Header
|
||||
/**
|
||||
* Sends a 202 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function accepted(bool $send = true)
|
||||
@@ -187,7 +187,7 @@ class Header
|
||||
/**
|
||||
* Sends a 400 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function error(bool $send = true)
|
||||
@@ -198,7 +198,7 @@ class Header
|
||||
/**
|
||||
* Sends a 403 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function forbidden(bool $send = true)
|
||||
@@ -209,7 +209,7 @@ class Header
|
||||
/**
|
||||
* Sends a 404 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function notfound(bool $send = true)
|
||||
@@ -220,7 +220,7 @@ class Header
|
||||
/**
|
||||
* Sends a 404 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function missing(bool $send = true)
|
||||
@@ -231,7 +231,7 @@ class Header
|
||||
/**
|
||||
* Sends a 410 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function gone(bool $send = true)
|
||||
@@ -242,7 +242,7 @@ class Header
|
||||
/**
|
||||
* Sends a 500 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function panic(bool $send = true)
|
||||
@@ -253,7 +253,7 @@ class Header
|
||||
/**
|
||||
* Sends a 503 header
|
||||
*
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function unavailable(bool $send = true)
|
||||
@@ -266,7 +266,7 @@ class Header
|
||||
*
|
||||
* @param string $url
|
||||
* @param int $code
|
||||
* @param boolean $send
|
||||
* @param bool $send
|
||||
* @return string|void
|
||||
*/
|
||||
public static function redirect(string $url, int $code = 302, bool $send = true)
|
||||
|
||||
Reference in New Issue
Block a user