File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/aws/aws-crt-php/src/AWS/CRT/HTTPLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: Headers.php <?php /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ namespace AWS\CRT\HTTP; use AWS\CRT\Internal\Encoding; final class Headers { private $headers; public function __construct($headers = []) { $this->headers = $headers; } public static function marshall($headers) { $buf = ""; foreach ($headers->headers as $header => $value) { $buf .= Encoding::encodeString($header); $buf .= Encoding::encodeString($value); } return $buf; } public static function unmarshall($buf) { $strings = Encoding::readStrings($buf); $headers = []; for ($idx = 0; $idx < count($strings);) { $headers[$strings[$idx++]] = $strings[$idx++]; } return new Headers($headers); } public function count() { return count($this->headers); } public function get($header) { return isset($this->headers[$header]) ? $this->headers[$header] : null; } public function set($header, $value) { $this->headers[$header] = $value; } public function toArray() { return $this->headers; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirHeaders.phpFile1.20 KB Rename | Delete | EditMessage.phpFile2.67 KB Rename | Delete | EditRequest.phpFile943.00 B Rename | Delete | EditResponse.phpFile695.00 B Rename | Delete | Edit