func NewHTTPClient(host string) *HTTPClient {
	if strings.HasSuffix(host, "/") {
		host = host[:len(host)-1]
	}
	return &HTTPClient{
		client:     getHttpClient(),
		Host:       []byte(host),
		HostString: host,
		uri:        []byte{},  
	}
}
NewHTTPClient creates a new HTTPClient.
package main
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"strings"
	"sync"
	"time"
	"github.com/timescale/tsbs/pkg/query"
)
var bytesSlash = []byte("/")  
type HTTPClient struct {
	client     *http.Client
	Host       []byte
	HostString string
	uri        []byte
}
type HTTPClientDoOptions struct {
	Debug                int
	PrettyPrintResponses bool
	chunkSize            uint64
	database             string
}
var httpClientOnce = sync.Once{}
var httpClient *http.Client
func getHttpClient() *http.Client {
	httpClientOnce.Do(func() {
		tr := &http.Transport{
			MaxIdleConnsPerHost: 1024,
		}
		httpClient = &http.Client{Transport: tr}
	})
	return httpClient
}