Package ghidra.net
Class HttpClients
- java.lang.Object
-
- ghidra.net.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 voidclearHttpClient()Clears the currently cachedHttpClient, forcing it to be rebuilt during the next call togetHttpClient().static java.net.http.HttpClientgetHttpClient()Returns a shared, plain (no special options)HttpClient.static java.net.http.HttpClient.BuildernewHttpClientBuilder()Creates a HttpClient Builder using Ghidra SSL/TLS context info.
-
-
-
Method Detail
-
newHttpClientBuilder
public static java.net.http.HttpClient.Builder newHttpClientBuilder() throws java.io.IOExceptionCreates 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.IOExceptionReturns 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 cachedHttpClient, forcing it to be rebuilt during the next call togetHttpClient().
-
-