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

Method detach

python/python3/tornado/web.py:1167–1180  ·  view source on GitHub ↗

Take control of the underlying stream. Returns the underlying `.IOStream` object and stops all further HTTP processing. Intended for implementing protocols like websockets that tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used.

(self)

Source from the content-addressed store, hash-verified

1165 return future
1166
1167 def detach(self) -> iostream.IOStream:
1168 """Take control of the underlying stream.
1169
1170 Returns the underlying `.IOStream` object and stops all
1171 further HTTP processing. Intended for implementing protocols
1172 like websockets that tunnel over an HTTP handshake.
1173
1174 This method is only supported when HTTP/1.1 is used.
1175
1176 .. versionadded:: 5.1
1177 """
1178 self._finished = True
1179 # TODO: add detach to HTTPConnection?
1180 return self.request.connection.detach() # type: ignore
1181
1182 def _break_cycles(self) -> None:
1183 # Break up a reference cycle between this handler and the

Callers 15

removeElementFunction · 0.45
bootstrap.jsFile · 0.45
completeFunction · 0.45
cFunction · 0.45
bootstrap.min.jsFile · 0.45
dFunction · 0.45
LaFunction · 0.45
MaFunction · 0.45
_detach_streamMethod · 0.45
headers_receivedMethod · 0.45
finishMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by 4

finishMethod · 0.36
getMethod · 0.36
getMethod · 0.36
respond_204Method · 0.36