Skip to content

Commit

Permalink
Add CDN-Loop request header
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Dec 7, 2024
1 parent 6fdbd86 commit 5e3c0d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
\Framework\HTTP\RequestHeader::ACCESS_CONTROL_REQUEST_METHOD,
\Framework\HTTP\RequestHeader::AUTHORIZATION,
\Framework\HTTP\RequestHeader::CACHE_CONTROL,
\Framework\HTTP\RequestHeader::CDN_LOOP,
\Framework\HTTP\RequestHeader::CONNECTION,
\Framework\HTTP\RequestHeader::CONTENT_DISPOSITION,
\Framework\HTTP\RequestHeader::CONTENT_ENCODING,
Expand Down
2 changes: 2 additions & 0 deletions src/HeaderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ trait HeaderTrait
'access-control-request-headers' => 'Access-Control-Request-Headers',
'access-control-request-method' => 'Access-Control-Request-Method',
'authorization' => 'Authorization',
'cdn-loop' => 'CDN-Loop',
'cookie' => 'Cookie',
'dnt' => 'DNT',
'expect' => 'Expect',
Expand Down Expand Up @@ -246,6 +247,7 @@ public static function setName(string $name) : void
public static function getMultilines() : array
{
return [
'cdn-loop',
'date',
'expires',
'if-modified-since',
Expand Down
4 changes: 4 additions & 0 deletions src/RequestHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class RequestHeader
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
*/
public const string AUTHORIZATION = 'Authorization';
/**
* @see https://datatracker.ietf.org/doc/html/rfc8586
*/
public const string CDN_LOOP = 'CDN-Loop';
/**
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie
*/
Expand Down

0 comments on commit 5e3c0d7

Please sign in to comment.