src/Common/Internal/ServiceRestProxy.php
public function getMetadataArray(array $headers)
    {
        $metadata = [];
        foreach ($headers as $key => $value) {
            $isMetadataHeader = Utilities::startsWith(
                strtolower($key),
                Resources::X_MS_META_HEADER_PREFIX
            );

            if ($isMetadataHeader) {
                $MetadataName = str_replace(
                    Resources::X_MS_META_HEADER_PREFIX,
                    Resources::EMPTY_STRING,
                    strtolower($key)
                );

                $metadata[$MetadataName] = $value;
            }
        }

        return $metadata;
    }
public function getMetadataArray(array $headers)
    {
        $metadata = [];
        foreach ($headers as $key => $value) {
            $isMetadataHeader = Utilities::startsWith(
                strtolower($key),
                Resources::X_MS_META_HEADER_PREFIX
            );

            if ($isMetadataHeader) {
                $MetadataName = str_replace(
                    Resources::X_MS_META_HEADER_PREFIX,
                    Resources::EMPTY_STRING,
                    strtolower($key)
                );

                $metadata[$MetadataName] = $value;
            }
        }

        return $metadata;
    }
public function getMetadataArray ( array $ headers ) { $ metadata = [ ] ; foreach ( $ headers as $ key => $ value ) { $ isMetadataHeader = Utilities :: startsWith ( strtolower ( $ key ) , Resources :: X_MS_META_HEADER_PREFIX ) ; if ( $ isMetadataHeader ) { $ MetadataName = str_replace ( Resources :: X_MS_META_HEADER_PREFIX , Resources :: EMPTY_STRING , strtolower ( $ key ) ) ; $ metadata [ $ MetadataName ] = $ value ; } } return $ metadata ; }
Gets metadata array by parsing them from given headers.

@param array $headers HTTP headers containing metadata elements

@return array
Gets metadata array by parsing them from given headers .