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

Not possible to enumerate multiple instances of a HTTPResponse header. #47

Open
ghost opened this issue Dec 26, 2018 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Dec 26, 2018

When a HTTPResponse contains multiple headers, it is not possible to write a response filter that re-writes those headers, as HTTPResponse.header(_ named: HTTPResponseHeader.Name) -> String? only exposes the first instance of the header.

This is a problem for example when one wants to re-write cookies in a response filter, as there could be multiple Set-Cookie headers in the response.

Likewise, it is not possible to delete a header in a response filter.

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

0 participants