src/BaiduBce/Services/Bos/BosClient.php
public function getObjectMetadata($bucketName, $key, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        $response = $this->sendRequest(
            HttpMethod::HEAD,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'key' => $key,
                'parseUserMetadata' => true
            )
        );

        return $response->metadata;
    }
public function getObjectMetadata($bucketName, $key, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        $response = $this->sendRequest(
            HttpMethod::HEAD,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'key' => $key,
                'parseUserMetadata' => true
            )
        );

        return $response->metadata;
    }
public function getObjectMetadata ( $ bucketName , $ key , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , BosOptions :: CONFIG ) ; $ response = $ this -> sendRequest ( HttpMethod :: HEAD , array ( BosOptions :: CONFIG => $ config , 'bucket_name' => $ bucketName , 'key' => $ key , 'parseUserMetadata' => true ) ) ; return $ response -> metadata ; }
Get Object meta information

@param string $bucketName The bucket name.
@param string $key The object path.
@param mixed $options The optional bce configuration, which will overwrite the
default configuration that was passed while creating BosClient instance.

@return mixed
Get Object meta information