public HttpRequest createServerRequest() {
            requireUri();
            requireContainer();
            com.yahoo.jdisc.http.HttpRequest serverRequest;
            if (method == null) {
                serverRequest = com.yahoo.jdisc.http.HttpRequest
                        .newServerRequest(container, uri);
            } else {
                if (version == null) {
                    serverRequest = com.yahoo.jdisc.http.HttpRequest
                            .newServerRequest(container, uri, method);
                } else {
                    if (remoteAddress == null) {
                        serverRequest = com.yahoo.jdisc.http.HttpRequest
                                .newServerRequest(container, uri, method,
                                        version);
                    } else {
                        serverRequest = com.yahoo.jdisc.http.HttpRequest
                                .newServerRequest(container, uri, method,
                                        version, remoteAddress);
                    }
                }
            }
            setParameters(serverRequest);
            // TODO IO wiring
            return new HttpRequest(serverRequest, requestData, properties);
        }
Start of API for synchronous HTTP request dispatch. Not yet ready for use.

@return a new server request
container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java