code: func New(baseurl string) (*Client, error) {
  	base, err := url.ParseRequestURI(baseurl)
  	if err != nil {
  		return nil, err
  	} else if !base.IsAbs() || base.Host == "" {
  		return nil, fmt.Errorf("URL is not absolute: %s", baseurl)
  	}
  
  	// create the client
  	client := &Client{
  		Driver:     &http.Client{}, // Don't use default client; shares by reference
  		Headers:    http.Header(make(map[string][]string)),
  		base:       base,
  		KeepAlives: true,
  	}
  
  	return client, nil
  }
docs: // New returns a *Client with the specified base URL endpoint, expected to
  // include the port string and any path, if required. Returns an error if
  // baseurl cannot be parsed as an absolute URL.