| 1 |
<?php |
| 2 |
|
| 3 |
declare (strict_types=1); |
| 4 |
namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Psr7; |
| 5 |
|
| 6 |
/** |
| 7 |
* @internal |
| 8 |
*/ |
| 9 |
final class Rfc7230 |
| 10 |
{ |
| 11 |
/** |
| 12 |
* Header related regular expressions (based on amphp/http package) |
| 13 |
* |
| 14 |
* Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons. |
| 15 |
* |
| 16 |
* @see https://github.com/amphp/http/blob/v1.0.1/src/Rfc7230.php#L12-L15 |
| 17 |
* |
| 18 |
* @license https://github.com/amphp/http/blob/v1.0.1/LICENSE |
| 19 |
*/ |
| 20 |
public const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\\]?={}\x01- ]++):[ \t]*+((?:[ \t]*+[!-~\x80-\xff]++)*+)[ \t]*+\r?\n)m"; |
| 21 |
public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; |
| 22 |
} |
| 23 |
|