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 Details

    • HttpClient

      public HttpClient(Config config)
  • Method Details

    • 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 interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException