Adds the given response header and value. Unlike `set_header`, `add_header` may be called multiple times to return multiple values for the same header.
(self, name: str, value: _HeaderTypes)
| 380 | self._headers[name] = self._convert_header_value(value) |
| 381 | |
| 382 | def add_header(self, name: str, value: _HeaderTypes) -> None: |
| 383 | """Adds the given response header and value. |
| 384 | |
| 385 | Unlike `set_header`, `add_header` may be called multiple times |
| 386 | to return multiple values for the same header. |
| 387 | """ |
| 388 | self._headers.add(name, self._convert_header_value(value)) |
| 389 | |
| 390 | def clear_header(self, name: str) -> None: |
| 391 | """Clears an outgoing header, undoing a previous `set_header` call. |