__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Aws\Api\Serializer;
use Aws\Api\Service;
use Aws\Api\StructureShape;
/**
* Serializes requests for the REST-JSON protocol.
* @internal
*/
class RestJsonSerializer extends RestSerializer
{
/** @var JsonBody */
private $jsonFormatter;
/** @var string */
private $contentType;
/**
* @param Service $api Service API description
* @param string $endpoint Endpoint to connect to
* @param JsonBody $jsonFormatter Optional JSON formatter to use
*/
public function __construct(
Service $api,
$endpoint,
JsonBody $jsonFormatter = null
) {
parent::__construct($api, $endpoint);
$this->contentType = JsonBody::getContentType($api);
$this->jsonFormatter = $jsonFormatter ?: new JsonBody($api);
}
protected function payload(StructureShape $member, array $value, array &$opts)
{
$body = isset($value) ?
((string) $this->jsonFormatter->build($member, $value))
: "{}";
$opts['headers']['Content-Type'] = $this->contentType;
$opts['body'] = $body;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Ec2ParamBuilder.php | File | 819 B | 0777 |
|
| JsonBody.php | File | 3.01 KB | 0777 |
|
| JsonRpcSerializer.php | File | 2.32 KB | 0777 |
|
| QueryParamBuilder.php | File | 3.92 KB | 0777 |
|
| QuerySerializer.php | File | 2.23 KB | 0777 |
|
| RestJsonSerializer.php | File | 1.11 KB | 0777 |
|
| RestSerializer.php | File | 9.97 KB | 0777 |
|
| RestXmlSerializer.php | File | 1.25 KB | 0777 |
|
| XmlBody.php | File | 5.78 KB | 0777 |
|