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

Method clear_header

python/python3/tornado/web.py:390–397  ·  view source on GitHub ↗

Clears an outgoing header, undoing a previous `set_header` call. Note that this method does not apply to multi-valued headers set by `add_header`.

(self, name: str)

Source from the content-addressed store, hash-verified

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.
392
393 Note that this method does not apply to multi-valued headers
394 set by `add_header`.
395 """
396 if name in self._headers:
397 del self._headers[name]
398
399 _INVALID_HEADER_CHAR_RE = re.compile(r"[\x00-\x1f]")
400

Callers 3

_accept_connectionMethod · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by 1

getMethod · 0.64