qwtsc commented on issue #2355: URL: https://github.com/apache/incubator-hugegraph/issues/2355#issuecomment-1818269971
but why do GremlinApi need this annotation? see this https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/gremlin/GremlinAPI.java and following code. ```java @POST @Timed @Compress @Consumes(APPLICATION_JSON) @Produces(APPLICATION_JSON_WITH_CHARSET) @RedirectFilter.RedirectMasterRole public Response post(@Context HugeConfig conf, @Context HttpHeaders headers, String request) { /* The following code is reserved for forwarding request */ // context.getRequestDispatcher(location).forward(request, response); // return Response.seeOther(UriBuilder.fromUri(location).build()) // .build(); // Response.temporaryRedirect(UriBuilder.fromUri(location).build()) // .build(); String auth = headers.getHeaderString(HttpHeaders.AUTHORIZATION); Response response = this.client().doPostRequest(auth, request); GREMLIN_INPUT_HISTOGRAM.update(request.length()); GREMLIN_OUTPUT_HISTOGRAM.update(response.getLength()); return transformResponseIfNeeded(response); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
