public class HttpClient extends Object
Constructor and Description |
---|
HttpClient(List<DnsEndpoint> endpoints)
Creates an HttpClient configured to hit the given DNS endpoints.
|
Modifier and Type | Method and Description |
---|---|
void |
connect(String url,
io.netty.channel.EventLoop eventLoop,
HttpCallback callback)
Opens a URL.
|
public HttpClient(List<DnsEndpoint> endpoints)
endpoints
- The DNS endpoints to use for resolving domains. If the list is empty, thenpublic void connect(String url, io.netty.channel.EventLoop eventLoop, HttpCallback callback)
url
- the URL to downloadeventLoop
- an EventLoop
that will receive the response bodycallback
- a callback to handle the response or any errorCopyright © 2021. All rights reserved.