aws / aws/aws-lambda-go

Implement `MultiValueHeaders` for ``events.LambdaFunctionURLResponse``

Open
#556 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
The `events.LambdaFunctionURLResponse` doesn't support `MultiValueHeaders` which became in come use. For now, the workaround is to set up the APIGatewayv2 instance and use `events.APIGatewayV2HTTPResponse`, which sometimes doesn't provide an economic reason to use APIGatewayv2 just for small Lambda.

**Describe the solution you'd like**
I would like to ask you to implement `MultiValueHeaders` support for `events.LambdaFunctionURLResponse`, bellow you can check the structure example:

```go
type LambdaFunctionURLResponse struct {
StatusCode int `json:"statusCode"`
Headers map[string]string `json:"headers"`
MultiValueHeaders map[string][]string `json:"multiValueHeaders"`
Body string `json:"body"`
IsBase64Encoded bool `json:"isBase64Encoded"`
Cookies []string `json:"cookies"`
}
```

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.