MCPcopy Create free account
hub / github.com/EasyIME/PIME / add_header

Method add_header

python/python3/tornado/web.py:382–388  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

flushMethod · 0.95
getMethod · 0.80
getMethod · 0.80

Calls 2

_convert_header_valueMethod · 0.95
addMethod · 0.45

Tested by 2

getMethod · 0.64
getMethod · 0.64