Package ortus.boxlang.runtime.net
Class HttpManager
java.lang.Object
ortus.boxlang.runtime.net.HttpManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClient
Get the singleton instance of the HttpManager.static HttpClient
getCustomClient
(IStruct attributes) Get a new HttpClient instance custom attributes including proxy client connection and redirect enforcement.static HttpResponse
<String> getTimeoutRequest
(int timeout) static CompletableFuture
<HttpResponse<String>> getTimeoutRequestAsync
(int timeout)
-
Method Details
-
getClient
Get the singleton instance of the HttpManager.Will construct a new instance if one does not already exist, otherwise returns the existing instance.
- Returns:
- The HttpManager instance.
-
getCustomClient
Get a new HttpClient instance custom attributes including proxy client connection and redirect enforcement.- Parameters:
attributes
-- Returns:
-
getTimeoutRequestAsync
-
getTimeoutRequest
-