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

Method _detach_stream

python/python3/tornado/websocket.py:598–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

596 return None
597
598 def _detach_stream(self) -> IOStream:
599 # disable non-WS methods
600 for method in [
601 "write",
602 "redirect",
603 "set_header",
604 "set_cookie",
605 "set_status",
606 "flush",
607 "finish",
608 ]:
609 setattr(self, method, _raise_not_supported_for_websockets)
610 return self.detach()
611
612
613def _raise_not_supported_for_websockets(*args: Any, **kwargs: Any) -> None:

Callers 1

_accept_connectionMethod · 0.80

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected