Like `Headers.get`, but does not fold multiple headers into a single one. This is useful for Set-Cookie and Cookie headers, which do not support folding. *See also:* - - <https://datatracker.ietf.org/doc/
(self, name: str | bytes)
| 143 | yield _native(x) |
| 144 | |
| 145 | def get_all(self, name: str | bytes) -> list[str]: |
| 146 | """ |
| 147 | Like `Headers.get`, but does not fold multiple headers into a single one. |
| 148 | This is useful for Set-Cookie and Cookie headers, which do not support folding. |
| 149 | |
| 150 | *See also:* |
| 151 | - <https://tools.ietf.org/html/rfc7230#section-3.2.2> |
| 152 | - <https://datatracker.ietf.org/doc/html/rfc6265#section-5.4> |
| 153 | - <https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.5> |
| 154 | """ |
| 155 | name = _always_bytes(name) |
| 156 | return [_native(x) for x in super().get_all(name)] |
| 157 | |
| 158 | def set_all(self, name: str | bytes, values: Iterable[str | bytes]): |
| 159 | """ |