Package com.twilio.http
Class NetworkHttpClient
- java.lang.Object
-
- com.twilio.http.HttpClient
-
- com.twilio.http.NetworkHttpClient
-
public class NetworkHttpClient extends HttpClient
-
-
Field Summary
-
Fields inherited from class com.twilio.http.HttpClient
ANY_100, ANY_200, ANY_300, ANY_400, ANY_500, DELAY_MILLIS, RETRIES, RETRY_CODES
-
-
Constructor Summary
Constructors Constructor Description NetworkHttpClient()
Create a new HTTP Client.NetworkHttpClient(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
Create a new HTTP Client using custom configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
makeRequest(Request request)
Make a request.-
Methods inherited from class com.twilio.http.HttpClient
getLastRequest, getLastResponse, reliableRequest, reliableRequest
-
-
-
-
Method Detail
-
makeRequest
public Response makeRequest(Request request)
Make a request.- Specified by:
makeRequest
in classHttpClient
- Parameters:
request
- request to make- Returns:
- Response of the HTTP request
-
-