Package ghidra.net

Class HttpClients

java.lang.Object
ghidra.net.HttpClients

public class HttpClients extends Object
  • Constructor Details

    • HttpClients

      public HttpClients()
  • Method Details

    • newHttpClientBuilder

      public static HttpClient.Builder newHttpClientBuilder() throws IOException
      Creates a HttpClient Builder using Ghidra SSL/TLS context info.
      Returns:
      a new HttpClient Builder
      Throws:
      IOException - if error in PKI settings or crypto configuration
    • getHttpClient

      public static HttpClient getHttpClient() throws IOException
      Returns a shared, plain (no special options) HttpClient.
      Returns:
      a HttpClient
      Throws:
      IOException - if error in PKI settings or crypto configuration
    • clearHttpClient

      public static void clearHttpClient()
      Clears the currently cached HttpClient, forcing it to be rebuilt during the next call to getHttpClient().