REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.75 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Api/Serializer/QuerySerializer.php
Text
Base64
<?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, '', '&', PHP_QUERY_RFC3986); return new Request( 'POST', $this->endpoint, [ 'Content-Length' => strlen($body), 'Content-Type' => 'application/x-www-form-urlencoded' ], $body ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Ec2ParamBuilder.php
906 B
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonBody.php
2.80 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonRpcSerializer.php
1.82 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QueryParamBuilder.php
4.08 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QuerySerializer.php
1.75 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestJsonSerializer.php
1.14 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestSerializer.php
8.33 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestXmlSerializer.php
1.30 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlBody.php
5.99 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).