public static URI getRequestURI(URI requestURI, String hostHeader, IoSession session) {
        boolean secure = SslUtils.isSecure(session);
        String authority = HttpUtils.getHostAndPort(hostHeader, secure);
        // Use getRawPath to get the un-decoded path; getPath returns the post-decode value.
        // This is required to handle special characters like spaces in the URI (KG-831).
        URI uri = URI.create("//" + authority + requestURI.getRawPath());
        return uri;
    }
public static URI getRequestURI ( URI requestURI , String hostHeader , IoSession session ) { boolean secure = SslUtils . isSecure ( session ) ; String authority = HttpUtils . getHostAndPort ( hostHeader , secure ) ; URI uri = URI . create ( "//" + authority + requestURI . getRawPath ( ) ) ; return uri ; }
constructs an http specific request uri with host, port (or explicit default port), and path