Skip to content

Commit 5e3c0d7

Browse files
committed
Add CDN-Loop request header
1 parent 6fdbd86 commit 5e3c0d7

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.phpstorm.meta.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
\Framework\HTTP\RequestHeader::ACCESS_CONTROL_REQUEST_METHOD,
185185
\Framework\HTTP\RequestHeader::AUTHORIZATION,
186186
\Framework\HTTP\RequestHeader::CACHE_CONTROL,
187+
\Framework\HTTP\RequestHeader::CDN_LOOP,
187188
\Framework\HTTP\RequestHeader::CONNECTION,
188189
\Framework\HTTP\RequestHeader::CONTENT_DISPOSITION,
189190
\Framework\HTTP\RequestHeader::CONTENT_ENCODING,

src/HeaderTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ trait HeaderTrait
150150
'access-control-request-headers' => 'Access-Control-Request-Headers',
151151
'access-control-request-method' => 'Access-Control-Request-Method',
152152
'authorization' => 'Authorization',
153+
'cdn-loop' => 'CDN-Loop',
153154
'cookie' => 'Cookie',
154155
'dnt' => 'DNT',
155156
'expect' => 'Expect',
@@ -246,6 +247,7 @@ public static function setName(string $name) : void
246247
public static function getMultilines() : array
247248
{
248249
return [
250+
'cdn-loop',
249251
'date',
250252
'expires',
251253
'if-modified-since',

src/RequestHeader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class RequestHeader
4747
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
4848
*/
4949
public const string AUTHORIZATION = 'Authorization';
50+
/**
51+
* @see https://datatracker.ietf.org/doc/html/rfc8586
52+
*/
53+
public const string CDN_LOOP = 'CDN-Loop';
5054
/**
5155
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie
5256
*/

0 commit comments

Comments
 (0)