Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6
This commit is contained in:
parent
db56c09587
commit
f1e72395cb
588 changed files with 26857 additions and 2777 deletions
54
vendor/symfony/http-foundation/Response.php
vendored
54
vendor/symfony/http-foundation/Response.php
vendored
|
@ -59,6 +59,7 @@ class Response
|
|||
const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
|
||||
const HTTP_EXPECTATION_FAILED = 417;
|
||||
const HTTP_I_AM_A_TEAPOT = 418; // RFC2324
|
||||
const HTTP_MISDIRECTED_REQUEST = 421; // RFC7540
|
||||
const HTTP_UNPROCESSABLE_ENTITY = 422; // RFC4918
|
||||
const HTTP_LOCKED = 423; // RFC4918
|
||||
const HTTP_FAILED_DEPENDENCY = 424; // RFC4918
|
||||
|
@ -115,7 +116,7 @@ class Response
|
|||
*
|
||||
* The list of codes is complete according to the
|
||||
* {@link http://www.iana.org/assignments/http-status-codes/ Hypertext Transfer Protocol (HTTP) Status Code Registry}
|
||||
* (last updated 2015-05-19).
|
||||
* (last updated 2016-03-01).
|
||||
*
|
||||
* Unless otherwise noted, the status code is defined in RFC2616.
|
||||
*
|
||||
|
@ -162,6 +163,7 @@ class Response
|
|||
416 => 'Range Not Satisfiable',
|
||||
417 => 'Expectation Failed',
|
||||
418 => 'I\'m a teapot', // RFC2324
|
||||
421 => 'Misdirected Request', // RFC7540
|
||||
422 => 'Unprocessable Entity', // RFC4918
|
||||
423 => 'Locked', // RFC4918
|
||||
424 => 'Failed Dependency', // RFC4918
|
||||
|
@ -213,7 +215,7 @@ class Response
|
|||
* @param int $status The response status code
|
||||
* @param array $headers An array of response headers
|
||||
*
|
||||
* @return Response
|
||||
* @return static
|
||||
*/
|
||||
public static function create($content = '', $status = 200, $headers = array())
|
||||
{
|
||||
|
@ -256,7 +258,7 @@ class Response
|
|||
*
|
||||
* @param Request $request A Request instance
|
||||
*
|
||||
* @return Response The current response.
|
||||
* @return $this
|
||||
*/
|
||||
public function prepare(Request $request)
|
||||
{
|
||||
|
@ -318,7 +320,7 @@ class Response
|
|||
/**
|
||||
* Sends HTTP headers.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function sendHeaders()
|
||||
{
|
||||
|
@ -352,7 +354,7 @@ class Response
|
|||
/**
|
||||
* Sends content for the current web response.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function sendContent()
|
||||
{
|
||||
|
@ -364,7 +366,7 @@ class Response
|
|||
/**
|
||||
* Sends HTTP headers and content.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
|
@ -387,7 +389,7 @@ class Response
|
|||
*
|
||||
* @param mixed $content Content that can be cast to string
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*
|
||||
* @throws \UnexpectedValueException
|
||||
*/
|
||||
|
@ -417,7 +419,7 @@ class Response
|
|||
*
|
||||
* @param string $version The HTTP protocol version
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setProtocolVersion($version)
|
||||
{
|
||||
|
@ -445,7 +447,7 @@ class Response
|
|||
* If the status text is null it will be automatically populated for the known
|
||||
* status codes and left empty otherwise.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*
|
||||
* @throws \InvalidArgumentException When the HTTP status code is not valid
|
||||
*/
|
||||
|
@ -488,7 +490,7 @@ class Response
|
|||
*
|
||||
* @param string $charset Character set
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setCharset($charset)
|
||||
{
|
||||
|
@ -561,7 +563,7 @@ class Response
|
|||
*
|
||||
* It makes the response ineligible for serving other clients.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setPrivate()
|
||||
{
|
||||
|
@ -576,7 +578,7 @@ class Response
|
|||
*
|
||||
* It makes the response eligible for serving other clients.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setPublic()
|
||||
{
|
||||
|
@ -622,7 +624,7 @@ class Response
|
|||
*
|
||||
* @param \DateTime $date A \DateTime instance
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setDate(\DateTime $date)
|
||||
{
|
||||
|
@ -649,7 +651,7 @@ class Response
|
|||
/**
|
||||
* Marks the response stale by setting the Age header to be equal to the maximum age of the response.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function expire()
|
||||
{
|
||||
|
@ -682,7 +684,7 @@ class Response
|
|||
*
|
||||
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpires(\DateTime $date = null)
|
||||
{
|
||||
|
@ -728,7 +730,7 @@ class Response
|
|||
*
|
||||
* @param int $value Number of seconds
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setMaxAge($value)
|
||||
{
|
||||
|
@ -744,7 +746,7 @@ class Response
|
|||
*
|
||||
* @param int $value Number of seconds
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setSharedMaxAge($value)
|
||||
{
|
||||
|
@ -778,7 +780,7 @@ class Response
|
|||
*
|
||||
* @param int $seconds Number of seconds
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setTtl($seconds)
|
||||
{
|
||||
|
@ -794,7 +796,7 @@ class Response
|
|||
*
|
||||
* @param int $seconds Number of seconds
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setClientTtl($seconds)
|
||||
{
|
||||
|
@ -822,7 +824,7 @@ class Response
|
|||
*
|
||||
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setLastModified(\DateTime $date = null)
|
||||
{
|
||||
|
@ -853,7 +855,7 @@ class Response
|
|||
* @param string|null $etag The ETag unique identifier or null to remove the header
|
||||
* @param bool $weak Whether you want a weak ETag or not
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setEtag($etag = null, $weak = false)
|
||||
{
|
||||
|
@ -877,7 +879,7 @@ class Response
|
|||
*
|
||||
* @param array $options An array of cache options
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
@ -928,7 +930,7 @@ class Response
|
|||
* This sets the status, removes the body, and discards any headers
|
||||
* that MUST NOT be included in 304 responses.
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*
|
||||
* @see http://tools.ietf.org/html/rfc2616#section-10.3.5
|
||||
*/
|
||||
|
@ -980,7 +982,7 @@ class Response
|
|||
* @param string|array $headers
|
||||
* @param bool $replace Whether to replace the actual value or not (true by default)
|
||||
*
|
||||
* @return Response
|
||||
* @return $this
|
||||
*/
|
||||
public function setVary($headers, $replace = true)
|
||||
{
|
||||
|
@ -1002,7 +1004,7 @@ class Response
|
|||
*/
|
||||
public function isNotModified(Request $request)
|
||||
{
|
||||
if (!$request->isMethodSafe()) {
|
||||
if (!$request->isMethodCacheable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1165,7 +1167,7 @@ class Response
|
|||
/**
|
||||
* Checks if we need to remove Cache-Control for SSL encrypted downloads when using IE < 9.
|
||||
*
|
||||
* @link http://support.microsoft.com/kb/323308
|
||||
* @see http://support.microsoft.com/kb/323308
|
||||
*/
|
||||
protected function ensureIEOverSSLCompatibility(Request $request)
|
||||
{
|
||||
|
|
Reference in a new issue