Package ghidra.net

# Class HttpClients

java.lang.Object
ghidra.net.HttpClients

public class HttpClients extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HttpClients()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `clearHttpClient()`
  Clears the currently cached `HttpClient`, forcing it to be rebuilt during the next call to `getHttpClient()`.
  `static HttpClient`
  `getHttpClient()`
  Returns a shared, plain (no special options) `HttpClient`.
  `static HttpClient.Builder`
  `newHttpClientBuilder()`
  Creates a HttpClient Builder using Ghidra SSL/TLS context info.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()`.