-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Multiple headers with same name #58
Labels
Comments
First change will be: IResponseBuilder WithHeader([NotNull] string name, params string[] values); Also your idea is possible: IResponseBuilder WithHeaders([NotNull] IDictionary<string,string[]> headers); However, also the json parsing should be updated. I will take a look. |
Added PR with simple implementation for that. |
Thanks. I added the JSON part to your code. Please review. And if it's ok, I can create a NuGet. |
Great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do I understand correct that currently it's not possible to set multiple headers with same name to ResponseMessage?
In particular, I'm interested in providing multiple Set-Cookie headers.
Is it possible to add such functionality? I could submit PR with changing Headers property from 'IDictionary<string, string>' to something like 'IDictionary<string, string[]>', but not sure how great is that, considering that it is public member.
The text was updated successfully, but these errors were encountered: