func WithoutLog() requestOption {
	return requestOption{
		disableLog: true,
	}
}
WithoutLog disabled debug logging for the given request/response.
package cli
import (
	"crypto/tls"
	"crypto/x509"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"os"
	"strconv"
	"strings"
	"time"
	"github.com/spf13/viper"
)
func fixAddress(addr string) string {
	if strings.HasPrefix(addr, ":") {
		addr = "http://localhost" + addr
	}
	if !strings.HasPrefix(addr, "http://") && !strings.HasPrefix(addr, "https://") {
		parts := strings.Split(addr, "/")
		c := configs[parts[0]]
		if c != nil && c.Base != "" {
			parts[0] = c.Base
			return strings.Join(parts, "/")
		}
		if strings.Contains(addr, "localhost") {
			addr = "http://" + addr
		} else {
			addr = "https://" + addr
		}
	}
	return addr
}
type requestOption struct {
	client     *http.Client
	disableLog bool
}
func WithClient(c *http.Client) requestOption {
	return requestOption{
		client: c,
	}
}