rest-assured/src/main/java/io/restassured/RestAssured.java
public static void proxy(String host) {
        if (UriValidator.isUri(host)) {
            try {
                proxy(new URI(host));
            } catch (URISyntaxException e) {
                throw new RuntimeException("Internal error in REST Assured when constructing URI for Proxy.", e);
            }
        } else {
            proxy(host(host));
        }
    }
public static void proxy(String host) {
        if (UriValidator.isUri(host)) {
            try {
                proxy(new URI(host));
            } catch (URISyntaxException e) {
                throw new RuntimeException("Internal error in REST Assured when constructing URI for Proxy.", e);
            }
        } else {
            proxy(host(host));
        }
    }
public static void proxy ( String host ) { if ( UriValidator . isUri ( host ) ) { try { proxy ( new URI ( host ) ) ; } catch ( URISyntaxException e ) { throw new RuntimeException ( "Internal error in REST Assured when constructing URI for Proxy." , e ) ; } } else { proxy ( host ( host ) ) ; } }
Instruct REST Assured to connect to a proxy on the specified host on port <code>8888</code>.

@param host The hostname of the proxy to connect to (for example <code>127.0.0.1</code>). Can also be a URI represented as a String.
@see #proxy(String, int)
Instruct REST Assured to connect to a proxy on the specified host on port <code > 8888< / code > .