public class HttpClient extends Object implements RESTClient
Constructor and Description |
---|
HttpClient(HttpClientOptions httpClientOptions) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<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 RESTClient
public <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Map<String,String> headers)
post
in interface RESTClient
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.