Exception
1 year ago
AppendStream.php
1 year ago
BufferStream.php
1 year ago
CachingStream.php
1 year ago
DroppingStream.php
1 year ago
FnStream.php
1 year ago
Header.php
1 year ago
HttpFactory.php
1 year ago
InflateStream.php
1 year ago
LazyOpenStream.php
1 year ago
LimitStream.php
1 year ago
Message.php
1 year ago
MessageTrait.php
1 year ago
MimeType.php
1 year ago
MultipartStream.php
1 year ago
NoSeekStream.php
1 year ago
PumpStream.php
1 year ago
Query.php
1 year ago
Request.php
1 year ago
Response.php
1 year ago
Rfc7230.php
1 year ago
ServerRequest.php
1 year ago
Stream.php
1 year ago
StreamDecoratorTrait.php
1 year ago
StreamWrapper.php
1 year ago
UploadedFile.php
1 year ago
Uri.php
1 year ago
UriComparator.php
1 year ago
UriNormalizer.php
1 year ago
UriResolver.php
1 year ago
Utils.php
1 year ago
Rfc7230.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace SureCartVendors\GuzzleHttp\Psr7; |
| 6 | |
| 7 | /** |
| 8 | * @internal |
| 9 | */ |
| 10 | final class Rfc7230 |
| 11 | { |
| 12 | /** |
| 13 | * Header related regular expressions (based on amphp/http package) |
| 14 | * |
| 15 | * Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons. |
| 16 | * |
| 17 | * @see https://github.com/amphp/http/blob/v1.0.1/src/Rfc7230.php#L12-L15 |
| 18 | * |
| 19 | * @license https://github.com/amphp/http/blob/v1.0.1/LICENSE |
| 20 | */ |
| 21 | public const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; |
| 22 | public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; |
| 23 | } |
| 24 |