OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
Xpress
/
vendor
/
guzzlehttp
/
guzzle
/
src
/
Handler
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:24:25 AM
rwxr-xr-x
📄
CurlFactory.php
24.75 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
CurlFactoryInterface.php
682 bytes
03/26/2025 04:24:25 AM
rw-r--r--
📄
CurlHandler.php
1.35 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
CurlMultiHandler.php
8.1 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
EasyHandle.php
2.94 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
HeaderProcessor.php
1.07 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
MockHandler.php
6.47 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
Proxy.php
2.28 KB
03/26/2025 04:24:25 AM
rw-r--r--
📄
StreamHandler.php
21.43 KB
03/26/2025 04:24:25 AM
rw-r--r--
Editing: HeaderProcessor.php
Close
<?php namespace GuzzleHttp\Handler; use GuzzleHttp\Utils; /** * @internal */ final class HeaderProcessor { /** * Returns the HTTP version, status code, reason phrase, and headers. * * @param string[] $headers * * @return array{0:string, 1:int, 2:?string, 3:array} * * @throws \RuntimeException */ public static function parseHeaders(array $headers): array { if ($headers === []) { throw new \RuntimeException('Expected a non-empty array of header data'); } $parts = \explode(' ', \array_shift($headers), 3); $version = \explode('/', $parts[0])[1] ?? null; if ($version === null) { throw new \RuntimeException('HTTP version missing from header data'); } $status = $parts[1] ?? null; if ($status === null) { throw new \RuntimeException('HTTP status code missing from header data'); } return [$version, (int) $status, $parts[2] ?? null, Utils::headersFromLines($headers)]; } }