Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request help: support get cookies method in request interface #140

Open
ZhangShangyu opened this issue Aug 23, 2023 · 0 comments
Open

request help: support get cookies method in request interface #140

ZhangShangyu opened this issue Aug 23, 2023 · 0 comments

Comments

@ZhangShangyu
Copy link

Issue description

In our plugin implementation we need get cookies from request, we can get cookie from header by

request.Header().Values("Cookie")

after that we need to parse the string to cookie structure, however it is not convenient and effective when we have many plugins have to use cookie.

So how about consider to add and implement cookie method in Request interface? like net/http/request.go

Cookies(filter string) []*Cookie 

Environment

  • APISIX Go Plugin Runner's version: 0.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant