rest-driver/rest-driver — Issue #89: Allow user to override default timeouts
Author: neilprosser
Created: 2011-11-09 13:36:06+00:00
State: open

We should allow the user to override the default connection timeout (10s) and the socket timeout (unlimited).

We could do this with a request modifier like:

```java
get(url, withSocketTimeout(10, TimeUnit.SECONDS)) // setSoTimeout(10000)
get(url, withConnectionTimeout(5, TimeUnit.MINUTES)) // setConnectionTimeout(300000)
get(url, withTimeout(500, TimeUnit.MILLISECONDS)) // setSoTimeout(500) and setConnectionTimeout(500)
```