Package io.github.bonigarcia.wdm.online
Class HttpClient
- java.lang.Object
-
- io.github.bonigarcia.wdm.online.HttpClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class HttpClient extends Object implements Closeable
HTTP Client.- Since:
- 2.1.0
- Author:
- Boni Garcia
-
-
Constructor Summary
Constructors Constructor Description HttpClient(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.hc.client5.http.classic.methods.HttpGet
createHttpGet(URL url)
org.apache.hc.core5.http.ClassicHttpResponse
execute(org.apache.hc.core5.http.ClassicHttpRequest method)
-
-
-
Constructor Detail
-
HttpClient
public HttpClient(Config config)
-
-
Method Detail
-
createHttpGet
public org.apache.hc.client5.http.classic.methods.HttpGet createHttpGet(URL url)
-
execute
public org.apache.hc.core5.http.ClassicHttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest method) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-