rest-assured/src/main/java/io/restassured/builder/RequestSpecBuilder.java
public RequestSpecBuilder setProxy(String host, int port, String scheme) {
        spec.proxy(host, port, scheme);
        return this;
    }
public RequestSpecBuilder setProxy(String host, int port, String scheme) {
        spec.proxy(host, port, scheme);
        return this;
    }
public RequestSpecBuilder setProxy ( String host , int port , String scheme ) { spec . proxy ( host , port , scheme ) ; return this ; }
Instruct REST Assured to connect to a proxy on the specified port on localhost with a specific scheme.

@param host   The hostname of the proxy to connect to (for example <code>127.0.0.1</code>)
@param port   The port of the proxy to connect to (for example <code>8888</code>)
@param scheme The http scheme (http or https)
@return RequestSpecBuilder
Instruct REST Assured to connect to a proxy on the specified port on localhost with a specific scheme .