annotate vendor/guzzlehttp/psr7/src/Rfc7230.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents
children
rev   line source
Chris@17 1 <?php
Chris@17 2
Chris@17 3 namespace GuzzleHttp\Psr7;
Chris@17 4
Chris@17 5 final class Rfc7230
Chris@17 6 {
Chris@17 7 /**
Chris@17 8 * Header related regular expressions (copied from amphp/http package)
Chris@17 9 * (Note: once we require PHP 7.x we could just depend on the upstream package)
Chris@17 10 *
Chris@17 11 * Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons.
Chris@17 12 *
Chris@17 13 * @link https://github.com/amphp/http/blob/v1.0.1/src/Rfc7230.php#L12-L15
Chris@17 14 * @license https://github.com/amphp/http/blob/v1.0.1/LICENSE
Chris@17 15 */
Chris@17 16 const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m";
Chris@17 17 const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)";
Chris@17 18 }