public static void buildResponse(HttpServerResponse httpServerResponse, ApiResponse amanResponse, HttpVersion httpVersion) {
        amanResponse.getHeaders().forEach(e -> {
            if (httpVersion == HttpVersion.HTTP_1_0 || httpVersion == HttpVersion.HTTP_1_1 || !e.getKey().equals("Connection")) {
                httpServerResponse.headers().add(e.getKey(), e.getValue());
            }
        });
        httpServerResponse.setStatusCode(amanResponse.getCode());
        httpServerResponse.setStatusMessage(amanResponse.getMessage() == null ? "" : amanResponse.getMessage());
    }
Construct {@link ApiRequest} and {@link ApiResponse} objects from {@link HttpServerRequest},
{@link HttpServerResponse} and {@link HttpClientResponse}

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/http/HttpApiFactory.java