/home/techb158/ileadtechnology.com/vendor/aws/aws-sdk-php/src/Api/Parser
NameSizeModeActions
Exception/-0755rm
AbstractParser.php10060644editdlrm
AbstractRestParser.php56260644editdlrm
Crc32ValidatingParser.php15160644editdlrm
DecodingEventStreamIterator.php89610644editdlrm
EventParsingIterator.php31010644editdlrm
JsonParser.php20590644editdlrm
JsonRpcParser.php13210644editdlrm
MetadataParserTrait.php26350644editdlrm
PayloadParserTrait.php14750644editdlrm
QueryParser.php17690644editdlrm
RestJsonParser.php12460644editdlrm
RestXmlParser.php10830644editdlrm
XmlParser.php51380644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/aws/aws-sdk-php/src/Api/Parser/MetadataParserTrait.php (2635B)
getHeaderLine($shape['locationName'] ?: $name); switch ($shape->getType()) { case 'float': case 'double': $value = (float) $value; break; case 'long': $value = (int) $value; break; case 'boolean': $value = filter_var($value, FILTER_VALIDATE_BOOLEAN); break; case 'blob': $value = base64_decode($value); break; case 'timestamp': try { $value = DateTimeResult::fromTimestamp( $value, !empty($shape['timestampFormat']) ? $shape['timestampFormat'] : null ); break; } catch (\Exception $e) { // If the value cannot be parsed, then do not add it to the // output structure. return; } case 'string': if ($shape['jsonvalue']) { $value = $this->parseJson(base64_decode($value), $response); } break; } $result[$name] = $value; } /** * Extract a map of headers with an optional prefix from the response. */ protected function extractHeaders( $name, Shape $shape, ResponseInterface $response, &$result ) { // Check if the headers are prefixed by a location name $result[$name] = []; $prefix = $shape['locationName']; $prefixLen = strlen($prefix); foreach ($response->getHeaders() as $k => $values) { if (!$prefixLen) { $result[$name][$k] = implode(', ', $values); } elseif (stripos($k, $prefix) === 0) { $result[$name][substr($k, $prefixLen)] = implode(', ', $values); } } } /** * Places the status code of the response into the result array. */ protected function extractStatus( $name, ResponseInterface $response, array &$result ) { $result[$name] = (int) $response->getStatusCode(); } }