servicetalk-http-utils/src/main/java/io/servicetalk/http/utils/RedirectSingle.java
// but cannot be shared because we don't have an internal module for http
but cannot be shared because we don't have an internal module for http
but cannot be shared because we don ' t have an internal module for http
private static String absoluteToRelativeFormRequestTarget(final String requestTarget,
                                                                  final String scheme) {
            final int fromIndex = scheme.length() + 3;  
            final int relativeReferenceIdx = requestTarget.indexOf('/', fromIndex);
            return relativeReferenceIdx < 0 ? "/" : requestTarget.substring(relativeReferenceIdx);
        }
private static String absoluteToRelativeFormRequestTarget ( final String requestTarget , final String scheme ) { final int fromIndex = scheme . length ( ) + 3 ; final int relativeReferenceIdx = requestTarget . indexOf ( '/' , fromIndex ) ; return relativeReferenceIdx < 0 ? "/" : requestTarget . substring ( relativeReferenceIdx ) ; }
but cannot be shared because we don't have an internal module for http
but cannot be shared because we don ' t have an internal module for http
// +3 because of "://" delimiter after scheme