Package io.apicurio.rest.client.spi
Interface ApicurioHttpClient
-
- All Superinterfaces:
AutoCloseable
public interface ApicurioHttpClient extends AutoCloseable
Common interface for http client implementations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()close the underlying http clientMap<String,String>getHeaders()<T> TsendRequest(Request<T> request)voidsetNextRequestHeaders(Map<String,String> headers)
-
-
-
Method Detail
-
sendRequest
<T> T sendRequest(Request<T> request)
- Type Parameters:
T- The type of the param to be returned- Parameters:
request- The request to be executed- Returns:
- The response from the client
-
setNextRequestHeaders
void setNextRequestHeaders(Map<String,String> headers)
- Parameters:
headers- the request headers to be used in the next request
-
close
void close()
close the underlying http client- Specified by:
closein interfaceAutoCloseable
-
-