REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.02 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Api/ErrorParser/JsonParserTrait.php
Text
Base64
<?php namespace Aws\Api\ErrorParser; use Aws\Api\Parser\PayloadParserTrait; use Aws\Api\StructureShape; use Psr\Http\Message\ResponseInterface; /** * Provides basic JSON error parsing functionality. */ trait JsonParserTrait { use PayloadParserTrait; private function genericHandler(ResponseInterface $response) { $code = (string) $response->getStatusCode(); return [ 'request_id' => (string) $response->getHeaderLine('x-amzn-requestid'), 'code' => null, 'message' => null, 'type' => $code[0] == '4' ? 'client' : 'server', 'parsed' => $this->parseJson($response->getBody(), $response) ]; } protected function payload( ResponseInterface $response, StructureShape $member ) { $jsonBody = $this->parseJson($response->getBody(), $response); if ($jsonBody) { return $this->parser->parse($member, $jsonBody); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AbstractErrorParser.php
2.99 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonParserTrait.php
1.02 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonRpcErrorParser.php
1.24 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestJsonErrorParser.php
1.63 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlErrorParser.php
3.20 KB
lrwxrwxr-x
2024-06-18 20:09:54
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).