public <S> S getFromGateway(final String path, final Map<String, Object> headers, final Type type) throws IOException {
        Response response = getHttpService(gatewayEndpoint + path, headers);
        String respBody = Objects.requireNonNull(response.body()).string();
        LOG.info("getFromGateway({}) resp({})", path, respBody);
        try {
            return GSON.fromJson(respBody, type);
        } catch (Exception e) {
            return (S) respBody;
        }
    }
Send a get http request to shenyu gateway with headers.

@param <S>     response type
@param path    path
@param headers headers
@param type    type of response passed to {@link Gson#fromJson(String, Type)}
@return response from gateway
@throws IOException IO exception
shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/helper/HttpHelper.java