private void handleError(ApiRequest apimanRequest, Throwable error, HttpServerResponse vertxResponse) {
        if (responseIsNotClosed()) {
            vertxResponse.setChunked(true);
            policyErrorWriter.write(apimanRequest, error, new DefaultApiClientResponse());
        } else {
            // probably log this
        }
    }
Returns true if the Origin request header is present.

@param request the ApiRequest
@return true if has origin header, else false
@link io.apiman.common.servlet.ApimanCorsFilter#hasOriginHeader
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/http/HttpPolicyAdapter.java