de.adorsys.multibanking.ing.http.HttpClient Maven / Gradle / Ivy
package de.adorsys.multibanking.ing.http;
import de.adorsys.multibanking.ing.model.Response;
import java.io.InputStream;
public interface HttpClient {
Request.Builder get(String uri);
Request.Builder post(String uri);
Request.Builder put(String uri);
Request.Builder delete(String uri);
Response send(Request.Builder requestBuilder, ResponseHandler responseHandler);
String content(Request.Builder requestBuilder);
@FunctionalInterface
interface ResponseHandler {
T apply(int statusCode, InputStream responseBody, ResponseHeaders responseHeaders);
}
}