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

dev.vality.http.client.HttpClient Maven / Gradle / Ivy

The newest version!
package dev.vality.http.client;

import dev.vality.http.client.domain.Response;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;

import java.util.function.Function;

public interface HttpClient {

     Response post(String methodName, HttpPost httpPost, Function handler,
                         C client);

     Response post(String methodName, HttpPost httpPost, Function handler);

     Response get(String methodName, HttpGet httpGet, Function handler,
                        C client);

     Response get(String methodName, HttpGet httpGet, Function handler);

     Response delete(String methodName, HttpDelete httpDelete, Function handler,
                           C client);

     Response delete(String methodName, HttpDelete httpDelete, Function handler);

     Response put(String methodName, HttpPut httpPut, Function handler,
                        C client);

     Response put(String methodName, HttpPut httpPut, Function handler);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy