Package io.split.service
Interface SplitHttpClient
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
SplitHttpClientImpl
public interface SplitHttpClient extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SplitHttpResponseget(URI uri, FetchOptions options, Map<String,List<String>> additionalHeaders)Wrapper for HTTP get methodSplitHttpResponsepost(URI uri, String entity, Map<String,List<String>> additionalHeaders)Wrapper for HTTP post method
-
-
-
Method Detail
-
get
SplitHttpResponse get(URI uri, FetchOptions options, Map<String,List<String>> additionalHeaders)
Wrapper for HTTP get method- Parameters:
uri- the URL to be usedoptions- The FetchOptions object that contains headers.- Returns:
- The response structure SplitHttpResponse
-
post
SplitHttpResponse post(URI uri, String entity, Map<String,List<String>> additionalHeaders) throws IOException
Wrapper for HTTP post method- Parameters:
uri- the URL to be usedentity- HttpEntity object that has The body loadadditionalHeaders- Any additional headers to be added.- Returns:
- The response structure SplitHttpResponse
- Throws:
IOException
-
-