public abstract static class Resty.Option extends Object
| Constructor and Description | 
|---|
Option()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
apply(URLConnection aConnection)
Override this to get access to the URLConnection before the actual
 connection is made. 
 | 
void | 
init(Resty resty)
Callback from Resty when the option is set on the Resty instance. 
 | 
static Resty.Timeout | 
timeout(int t)
Specify the connection timeout in milliseconds. 
 | 
public void apply(URLConnection aConnection)
aConnection - public void init(Resty resty)
public static Resty.Timeout timeout(int t)
new Resty(Option.timeout(3000));t - the timeoutURLConnection.setConnectTimeout(int)