Skip to content

Commit

Permalink
Added status codes (RFC6585 & RFC7725) (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
vostlertsd authored Jul 5, 2022
1 parent a1656f8 commit a64ac18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Swoole/SwooleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class SwooleClient implements Client, ServesStaticFiles
{
const STATUS_CODE_REASONS = [
419 => 'Page Expired',
431 => 'Request Header Fields Too Large', // RFC6585
451 => 'Unavailable For Legal Reasons', // RFC7725
];

public function __construct(protected int $chunkSize = 1048576)
Expand Down

0 comments on commit a64ac18

Please sign in to comment.