__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Parser;
use Aws\Api\Service;
use Aws\Api\StructureShape;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
* @internal Implements REST-JSON parsing (e.g., Glacier, Elastic Transcoder)
*/
class RestJsonParser extends AbstractRestParser
{
use PayloadParserTrait;
/**
* @param Service $api Service description
* @param JsonParser $parser JSON body builder
*/
public function __construct(Service $api, JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
}
protected function payload(
ResponseInterface $response,
StructureShape $member,
array &$result
) {
$jsonBody = $this->parseJson($response->getBody(), $response);
if ($jsonBody) {
$result += $this->parser->parse($member, $jsonBody);
}
}
public function parseMemberFromStream(
StreamInterface $stream,
StructureShape $member,
$response
) {
$jsonBody = $this->parseJson($stream, $response);
if ($jsonBody) {
return $this->parser->parse($member, $jsonBody);
}
return [];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0777 |
|
|
| AbstractParser.php | File | 1006 B | 0777 |
|
| AbstractRestParser.php | File | 5.49 KB | 0777 |
|
| Crc32ValidatingParser.php | File | 1.48 KB | 0777 |
|
| DecodingEventStreamIterator.php | File | 8.86 KB | 0777 |
|
| EventParsingIterator.php | File | 4.89 KB | 0777 |
|
| JsonParser.php | File | 2.01 KB | 0777 |
|
| JsonRpcParser.php | File | 2.27 KB | 0777 |
|
| MetadataParserTrait.php | File | 2.57 KB | 0777 |
|
| NonSeekableStreamDecodingEventStreamIterator.php | File | 2.43 KB | 0777 |
|
| PayloadParserTrait.php | File | 1.44 KB | 0777 |
|
| QueryParser.php | File | 1.73 KB | 0777 |
|
| RestJsonParser.php | File | 1.22 KB | 0777 |
|
| RestXmlParser.php | File | 1.06 KB | 0777 |
|
| XmlParser.php | File | 5.02 KB | 0777 |
|