public static Optional<HttpRequest> getHttpRequest(com.yahoo.processing.Request processingRequest) {
        final Properties requestProperties = processingRequest.properties();
        return Optional.ofNullable(
                (HttpRequest) requestProperties.get(com.yahoo.processing.Request.JDISC_REQUEST));
    }
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