Replies: 1 comment
-
Hi, using "," does not work for cookies, as multiple cookies set via header are joined by ",", while multiple cookies set via cookies= are joined using ";". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, the Headers class exposes (amongst others) the following methods:
Headers.get
If I want to look within the headers for a header, without matching case, I can use Headers.get and it will also handle multi values headers by joining the values with ", ".
However, if I want to do the same while matching casing, I have to iterate myself on Headers.raw property and also handle the multi values.
Would it be ok to introduce get_raw(case_respected_name: bytes) -> bytes ?
Headers.items
Following the same logic, I would like to browse through all the items, but with the actual name and multi values handling.
Would it be ok to introduce raw_items() -> Mapping[bytes, bytes] ?
Beta Was this translation helpful? Give feedback.
All reactions