func (client *Client) GetObjectMetadataWithContext(ctx context.Context, bucketName, objectName string) (*ObjectMetadata, error) {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         objectName,
		Method:             HTTPGet,
		QueryHeaderOptions: getObjectMetadataOption{},
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return &ObjectMetadata{}, err
	}
	defer resp.Body.Close()
	result := parseObjectMetadataFromHeader(resp.Header)

	return result, nil
}
// GetObjectMetadataWithContext gets metadata of objectName in bucketName with context controlling
GetObjectMetadataWithContext gets metadata of objectName in bucketName with context controlling
// GetObjectMetadataWithContext gets metadata of objectName in bucketName with context controlling
func (client *Client) GetObjectMetadataWithContext(ctx context.Context, bucketName, objectName string) (*ObjectMetadata, error) {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         objectName,
		Method:             HTTPGet,
		QueryHeaderOptions: getObjectMetadataOption{},
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return &ObjectMetadata{}, err
	}
	defer resp.Body.Close()
	result := parseObjectMetadataFromHeader(resp.Header)
	return result, nil
}
func ( client * Client ) GetObjectMetadataWithContext ( ctx context . Context , bucketName , objectName string ) ( * ObjectMetadata , error ) { req := & clientRequest { BucketName : bucketName , ObjectName : objectName , Method : HTTPGet , QueryHeaderOptions : getObjectMetadataOption { } , } resp , err := client . do ( ctx , req ) if err != nil { return & ObjectMetadata { } , err } defer resp . Body . Close ( ) result := parseObjectMetadataFromHeader ( resp . Header ) return result , nil }
GetObjectMetadataWithContext gets metadata of objectName in bucketName with context controlling
GetObjectMetadataWithContext gets metadata of objectName in bucketName with context controlling