public String path() {
        URL url;
        try {
            url = new URL(uri().toString());
        } catch (MalformedURLException e) {
            url = null;
        }
        if (url != null) {
            String file = url.getFile();
            if (file != null) {
                return file;
            }
        }
        String path = uri().getEncodedPath();
        if (path != null) {
            int pathIndex = uri().toString().indexOf(path);
            if (pathIndex != -1) {
                return uri().toString().substring(pathIndex);
            }
        }
        path = uri().getPath();
        if (path != null) {
            int pathIndex = uri().toString().indexOf(path);
            if (pathIndex != -1) {
                return uri().toString().substring(pathIndex);
            }
        }
        return uri().toString().replace(uri().getScheme() + "://" + uri().getAuthority(), "");
    }
Get the request path from the header part.

@return The request path.
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestHeaderPart.java