All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.sdk.core.http.HttpClient Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.core.http;

import com.sinch.sdk.core.exceptions.ApiException;
import com.sinch.sdk.core.models.ServerConfiguration;
import java.util.Map;

public interface HttpClient extends AutoCloseable {

  boolean isClosed();

  void close() throws Exception;

  /**
   * Register a set of headers to be added onto requests
   *
   * @param headers Map of key/value headers to be added
   */
  void setRequestHeaders(Map headers);

  HttpResponse invokeAPI(
      ServerConfiguration serverConfiguration,
      Map authManagersByOasSecuritySchemes,
      HttpRequest request)
      throws ApiException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy