Package ghidra.net

Class HttpClients


  • public class HttpClients
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpClients()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 java.net.http.HttpClient getHttpClient()
      Returns a shared, plain (no special options) HttpClient.
      static java.net.http.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 Detail

      • HttpClients

        public HttpClients()
    • Method Detail

      • newHttpClientBuilder

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

        public static java.net.http.HttpClient getHttpClient()
                                                      throws java.io.IOException
        Returns a shared, plain (no special options) HttpClient.
        Returns:
        a HttpClient
        Throws:
        java.io.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().