Class HttpClient

    • Constructor Detail

      • HttpClient

        public HttpClient()
    • Method Detail

      • reliableRequest

        public Response reliableRequest​(Request request)
        Make a request.
        Parameters:
        request - request to make
        Returns:
        Response of the HTTP request
      • reliableRequest

        public Response reliableRequest​(Request request,
                                        int[] retryCodes,
                                        int retries,
                                        long delayMillis)
        Make a request.
        Parameters:
        request - request to make
        retryCodes - codes used for retries
        retries - max number of retries
        delayMillis - delays between retries
        Returns:
        Response of the HTTP request