public HttpRequest connectTimeout(final int timeout){
  connection.setConnectTimeout(timeout);
  return this;
}

public HttpRequest connectTimeout ( final int timeout ) { connection . setConnectTimeout ( timeout ) ; return this ; }
set connect timeout on connection to given value
