servicetalk-http-api/src/main/java/io/servicetalk/http/api/RedirectConfigBuilder.java
/**
     * Sets the maximum number of redirects to follow.
     *
     * @param maxRedirects The maximum number of redirects to follow
     * @return {@code this}
     */
Sets the maximum number of redirects to follow.
@param maxRedirects The maximum number of redirects to follow
@return  this
Sets the maximum number of redirects to follow . @param maxRedirects The maximum number of redirects to follow @return this
public RedirectConfigBuilder maxRedirects(final int maxRedirects) {
        if (maxRedirects < 0) {
            throw new IllegalArgumentException("maxRedirects: " + maxRedirects + " (expected >= 0)");
        }
        this.maxRedirects = maxRedirects;
        return this;
    }
public RedirectConfigBuilder maxRedirects ( final int maxRedirects ) { if ( maxRedirects < 0 ) { throw new IllegalArgumentException ( "maxRedirects: " + maxRedirects + " (expected >= 0)" ) ; } this . maxRedirects = maxRedirects ; return this ; }
Sets the maximum number of redirects to follow.
Sets the maximum number of redirects to follow .