public abstract class HttpClient extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANY_100 |
static int |
ANY_200 |
static int |
ANY_300 |
static int |
ANY_400 |
static int |
ANY_500 |
static long |
DELAY_MILLIS |
static int |
RETRIES |
static int[] |
RETRY_CODES |
Constructor and Description |
---|
HttpClient() |
Modifier and Type | Method and Description |
---|---|
abstract Response |
makeRequest(Request request) |
Response |
reliableRequest(Request request)
Make a request.
|
Response |
reliableRequest(Request request,
int[] retryCodes,
int retries,
long delayMillis)
Make a request.
|
public static final int ANY_500
public static final int ANY_400
public static final int ANY_300
public static final int ANY_200
public static final int ANY_100
public static final int[] RETRY_CODES
public static final int RETRIES
public static final long DELAY_MILLIS
public Response reliableRequest(Request request)
request
- request to makepublic Response reliableRequest(Request request, int[] retryCodes, int retries, long delayMillis)
request
- request to makeretryCodes
- codes used for retriesretries
- max number of retriesdelayMillis
- delays between retriesCopyright © 2011 Twilio, Inc. All Rights Reserved.