org.jsoftware.restclient.BaseRestClientCall Maven / Gradle / Ivy
package org.jsoftware.restclient;
import java.io.IOException;
/**
* Base request builder.
* @author szalik
*/
public interface BaseRestClientCall {
/**
* Execute http call
* @throws IOException if http request failed
* @return http response
*/
RestClientResponse execute() throws IOException;
/**
* Add request parameter
* @param name parameter name
* @param value parameter value
* @return self
*/
C parameter(String name, Object value);
/**
* Set http header
* @param name header name
* @param value header value
* @return self
*/
C header(String name, String value);
}