private HeroicClient()

in src/main/java/com/spotify/heroic/client/HeroicClient.java [58:77]


  private HeroicClient(String heroicUrl, Config config) {
    this.baseUrl = HttpUrl.parse(heroicUrl);
    if (this.baseUrl == null) {
      throw new HeroicClientException("A valid heroic url is required");
    }

    this.client =
        new OkHttpClient()
            .newBuilder()
            .connectTimeout(config.getConnectTimeoutSeconds(), TimeUnit.SECONDS)
            .readTimeout(config.getReadTimeoutSeconds(), TimeUnit.SECONDS)
            .build();

    this.baseRequest =
        new Request.Builder()
            .url(baseUrl)
            .addHeader("Content-Type", "application/json")
            .addHeader("X-Client-Id", config.getClientId())
            .build();
  }