com.sinch.sdk.core.http.HttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
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