Skip to content

Why are request cookie values typed as string | string[] instead of just string? #1854

Answered by kettanaito
ezzatron asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @ezzatron. Thanks for raising this. I believe this is a bug in types. While response cookies may have multi-value cookies, like Set-Cookie, request cookies are always a flat [string]: string map.

Would you like to open a pull request to fix this?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ezzatron
Comment options

@ezzatron
Comment options

Answer selected by ezzatron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants