private static URI createUri(String request) {
        final URI uri;
        try {
            uri = new URI(request);
        } catch (URISyntaxException e) {
            throw new IllegalArgumentException(e);
        }
        return uri;
    }
Create a new HTTP request from an URI.

@param container the current container instance
@param uri the request parameters
@param method GET, POST, etc
@param requestData the associated data stream, may be null
@param properties a set of properties to set in the request in addition to the implicit ones from the URI
@return a new HTTP request
container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java