public class HttpClient extends Object implements RESTClient
| Constructor and Description |
|---|
HttpClient(HttpClientOptions httpClientOptions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T extends RESTResponse> |
delete(String path,
Map<String,String> headers) |
<T extends RESTResponse> |
delete(String path,
RESTRequest body,
Map<String,String> headers) |
<T extends RESTResponse> |
get(String path,
Class<T> responseType,
Map<String,String> headers) |
<T extends RESTResponse> |
post(String path,
RESTRequest body,
Class<T> responseType,
Map<String,String> headers) |
public HttpClient(HttpClientOptions httpClientOptions)
public <T extends RESTResponse> T get(String path, Class<T> responseType, Map<String,String> headers)
get in interface RESTClientpublic <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Map<String,String> headers)
post in interface RESTClientpublic <T extends RESTResponse> T delete(String path, Map<String,String> headers)
delete in interface RESTClientpublic <T extends RESTResponse> T delete(String path, RESTRequest body, Map<String,String> headers)
delete in interface RESTClientpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.