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

Implement MultiValueHeaders for events.LambdaFunctionURLResponse #556

Open
richie-tt opened this issue Apr 5, 2024 · 0 comments
Open

Implement MultiValueHeaders for events.LambdaFunctionURLResponse #556

richie-tt opened this issue Apr 5, 2024 · 0 comments

Comments

@richie-tt
Copy link

richie-tt commented Apr 5, 2024

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:

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.

@richie-tt richie-tt changed the title Implement MultiValueHeaders for events.LambdaFunctionURLRequest Implement MultiValueHeaders for events.LambdaFunctionURLRequest Apr 5, 2024
@richie-tt richie-tt changed the title Implement MultiValueHeaders for events.LambdaFunctionURLRequest Implement MultiValueHeaders for events.LambdaFunctionURLResponse Apr 5, 2024
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