func (client *Client) UploadPartWithContext(ctx context.Context, request *UploadPartRequest) (*UploadPartResponse, error) {
	result := &UploadPartResponse{}
	req := &clientRequest{
		BucketName:         request.BucketName,
		ObjectName:         request.ObjectName,
		Method:             HTTPPut,
		Data:               request.Data,
		QueryHeaderOptions: request,
		Result:             result,
	}

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

	return result, err
}
// UploadPartWithContext upload part of multipart uploading with context controlling
UploadPartWithContext upload part of multipart uploading with context controlling
// UploadPartWithContext upload part of multipart uploading with context controlling
func (client *Client) UploadPartWithContext(ctx context.Context, request *UploadPartRequest) (*UploadPartResponse, error) {
	result := &UploadPartResponse{}
	req := &clientRequest{
		BucketName:         request.BucketName,
		ObjectName:         request.ObjectName,
		Method:             HTTPPut,
		Data:               request.Data,
		QueryHeaderOptions: request,
		Result:             result,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	return result, err
}
func ( client * Client ) UploadPartWithContext ( ctx context . Context , request * UploadPartRequest ) ( * UploadPartResponse , error ) { result := & UploadPartResponse { } req := & clientRequest { BucketName : request . BucketName , ObjectName : request . ObjectName , Method : HTTPPut , Data : request . Data , QueryHeaderOptions : request , Result : result , } resp , err := client . do ( ctx , req ) if err != nil { return nil , err } defer resp . Body . Close ( ) return result , err }
UploadPartWithContext upload part of multipart uploading with context controlling
UploadPartWithContext upload part of multipart uploading with context controlling