Upgrade to 3.1.0

This commit is contained in:
Bastian Allgeier
2019-03-19 11:07:14 +01:00
parent 418db4b09b
commit 6e074142f1
98 changed files with 1266 additions and 299 deletions

View File

@@ -5,13 +5,13 @@ namespace Kirby\Http;
use Kirby\Toolkit\Str;
/**
* This class makes cookie handling easy
* The `Cookie` class helps you to
* handle cookies in your projects.
*
* @package Kirby Http
* @author Bastian Allgeier <bastian@getkirby.com>
* @link http://getkirby.com
* @copyright Bastian Allgeier
* @license MIT
*/
class Cookie
{

View File

@@ -5,13 +5,13 @@ namespace Kirby\Http;
use Kirby\Toolkit\F;
/**
* Makes sending HTTP headers a breeze
* The Header class provides methods
* for sending HTTP headers.
*
* @package Kirby Toolkit
* @package Kirby Http
* @author Bastian Allgeier <bastian@getkirby.com>
* @link http://getkirby.com
* @copyright Bastian Allgeier
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
class Header
{

View File

@@ -12,7 +12,7 @@ use Kirby\Toolkit\A;
use Kirby\Toolkit\Str;
/**
* The Request class provides
* The `Request` class provides
* a simple API to inspect incoming
* requests.
*
@@ -154,7 +154,7 @@ class Request
/**
* Detects ajax requests
*
* @deprecated 3.1.0 No longer reliable, especially with the fetch api.
* @return boolean
*/
public function ajax(): bool

View File

@@ -187,7 +187,7 @@ class Response
*/
public static function file(string $file)
{
return new static(F::read($file), F::mime($file));
return new static(F::read($file), F::extensionToMime(F::extension($file)));
}
/**

View File

@@ -155,6 +155,7 @@ class Route
/**
* Throws a specific exception to tell
* the router to jump to the next route
* @since 3.0.3
*
* @return void
*/