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 void
clearHttpClient()
Clears the currently cachedHttpClient
, forcing it to be rebuilt during the next call togetHttpClient()
.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.
-
-
-
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 cachedHttpClient
, forcing it to be rebuilt during the next call togetHttpClient()
.
-
-