You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/06 03:24:36 UTC

[GitHub] [apisix-java-plugin-runner] cws1981 commented on issue #109: request help: Can request get cookies?

cws1981 commented on issue #109:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/109#issuecomment-1006255496


   > 
   
   I didn’t make it clear, I wanted to ask PluginFilter HttpRequest get cookie😄。
   ```
   @Override
     public Mono<Void> filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) {
        // request.getCookies();
   }
   ```
   I have solved it. According to the http protocol, the cookie is in the request header. 
   ```
   String cookie = request.getHeader("cookie");
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org