Class HttpManager

java.lang.Object
ortus.boxlang.runtime.net.HttpManager

public class HttpManager extends Object
  • Method Details

    • getClient

      public static HttpClient 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

      public static HttpClient getCustomClient(IStruct attributes)
      Get a new HttpClient instance custom attributes including proxy client connection and redirect enforcement.
      Parameters:
      attributes -
      Returns:
    • getTimeoutRequestAsync

      public static CompletableFuture<HttpResponse<String>> getTimeoutRequestAsync(int timeout)
    • getTimeoutRequest

      public static HttpResponse<String> getTimeoutRequest(int timeout)