apache / apache/apisix-go-plugin-runner

request help: support get cookies method in request interface

Open
#140 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
198
Forks
68
PR merge metrics
No merged PRs in 30d

Description

### Issue description
In our plugin implementation we need get cookies from request, we can get cookie from header by
```go
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
```go
Cookies(filter string) []*Cookie
```

### Environment

* APISIX Go Plugin Runner's version: 0.5.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.