code: func (hc *httpclient) SetSettings(settings interface{}) error {
  	httpSettings, ok := settings.(HTTPClientSettings)
  	if !ok {
  		return errors.Wrapf(ErrInvalidSettingsType, "expected %T", HTTPClientSettings{})
  	}
  	if len(httpSettings.URI) == 0 {
  		hc.endpoint = DefaultLocalIRIURI
  	} else {
  		if _, err := url.Parse(httpSettings.URI); err != nil {
  			return errors.Wrap(ErrInvalidURI, httpSettings.URI)
  		}
  		hc.endpoint = httpSettings.URI
  	}
  	if httpSettings.Client != nil {
  		hc.client = httpSettings.Client
  	} else {
  		hc.client = http.DefaultClient
  	}
  	return nil
  }
docs: // ignore