HttpService
constructor()
HttpService When using the default constructor, DEFAULT_CONNECT_TIMEOUT and DEFAULT_READ_TIMEOUT are used for the timeout values.
HttpService Provides overrides for the connection and read timeout values on instantiation. Please note: Setting override values to less than the DEFAULT_CONNECT_TIMEOUT and DEFAULT_READ_TIMEOUT values can result in unexpected request timeouts. Setting override values to less than 1 will force the use of DEFAULT_CONNECT_TIMEOUT and DEFAULT_READ_TIMEOUT as timeout values.
Parameters
connectTimeout
The connection timeout for the underlying HttpURLConnection, in milliseconds. The default value is 10000 milliseconds.
readTimeout
The read timeout for the underlying HttpURLConnection, in milliseconds. The default value is 10000 milliseconds