-
- All Superinterfaces:
io.rxmicro.runtime.AutoRelease
public interface HttpClient extends io.rxmicro.runtime.AutoReleaseA low-level reactive HTTP client- Since:
- 0.1
- Author:
- nedis
- See Also:
HttpClientFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<ClientHttpResponse>sendAsync(String method, String path, List<Map.Entry<String,String>> headers)Sends the HTTP requestCompletableFuture<ClientHttpResponse>sendAsync(String method, String path, List<Map.Entry<String,String>> headers, Object body)Sends the HTTP request
-
-
-
Method Detail
-
sendAsync
CompletableFuture<ClientHttpResponse> sendAsync(String method, String path, List<Map.Entry<String,String>> headers)
Sends the HTTP request- Parameters:
method- the HTTP methodpath- the HTTP pathheaders- the HTTP headers- Returns:
- the
CompletableFuturethat contains async result of sending the HTTP request
-
sendAsync
CompletableFuture<ClientHttpResponse> sendAsync(String method, String path, List<Map.Entry<String,String>> headers, Object body)
Sends the HTTP request- Parameters:
method- the HTTP methodpath- the HTTP pathheaders- the HTTP headersbody- the HTTP body- Returns:
- the
CompletableFuturethat contains async result of sending the HTTP request
-
-