rest-assured/src/main/java/io/restassured/internal/http/HTTPBuilder.java
public void setUri(Object uri) throws URISyntaxException {
        this.defaultURI = new URIBuilder(URIBuilder.convertToURI(uri), urlEncodingEnabled, encoderConfig);
    }
public void setUri(Object uri) throws URISyntaxException {
        this.defaultURI = new URIBuilder(URIBuilder.convertToURI(uri), urlEncodingEnabled, encoderConfig);
    }
public void setUri ( Object uri ) throws URISyntaxException { this . defaultURI = new URIBuilder ( URIBuilder . convertToURI ( uri ) , urlEncodingEnabled , encoderConfig ) ; }
Set the default URI used for requests that do not explicitly take a
<code>uri</code> param.

@param uri either a {@link URL}, {@link URI} or object whose
<code>toString()</code> produces a valid URI string.  See
{@link URIBuilder#convertToURI(Object)}.
@throws URISyntaxException if the uri argument does not represent a valid URI
Set the default URI used for requests that do not explicitly take a <code > uri< / code > param .