func (r *RequestBuilder) Exec(ctx context.Context, res interface{}) error {
	httpRes, err := r.Send(ctx)
	if err != nil {
		return err
	}

	if res == nil {
		lateErr := httpRes.Close()
		if httpRes.Error != nil {
			return httpRes.Error
		}
		return lateErr
	}

	return httpRes.Decode(res)
}
func (r *RequestBuilder) Exec(ctx context.Context, res interface{}) error {
	httpRes, err := r.Send(ctx)
	if err != nil {
		return err
	}

	if res == nil {
		lateErr := httpRes.Close()
		if httpRes.Error != nil {
			return httpRes.Error
		}
		return lateErr
	}

	return httpRes.Decode(res)
}
func ( r * RequestBuilder ) Exec ( ctx context . Context , res interface { } ) error { httpRes , err := r . Send ( ctx ) if err != nil { return err } if res == nil { lateErr := httpRes . Close ( ) if httpRes . Error != nil { return httpRes . Error } return lateErr } return httpRes . Decode ( res ) }
// Exec sends the request a request and decodes the response.
Exec sends the request a request and decodes the response .