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 voidclose()org.apache.hc.client5.http.classic.methods.HttpGetcreateHttpGet(URL url)org.apache.hc.core5.http.ClassicHttpResponseexecute(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-