class_docstr: Implements the HTTP/1.x protocol.
  
  This class can be on its own for clients, or via `HTTP1ServerConnection`
  for servers.
class_docstr_tok: ["Implements","the","HTTP\/1.x","protocol",".","This","class","can","be","on","its","own","for","clients",",","or","via","`","HTTP1ServerConnection","`","for","servers","."]
docstr: Take control of the underlying stream.
  
  Returns the underlying `.IOStream` object and stops all further
  HTTP processing.  May only be called during
  `.HTTPMessageDelegate.headers_received`.  Intended for implementing
  protocols like websockets that tunnel over an HTTP handshake.
docstr_tok: ["Take","control","of","the","underlying","stream",".","Returns","the","underlying","`",".IOStream","`","object","and","stops","all","further","HTTP","processing",".","May","only","be","called","during","`",".HTTPMessageDelegate.headers_received","`",".","Intended","for","implementing","protocols","like","websockets","that","tunnel","over","an","HTTP","handshake","."]
code: def detach(self):
      """Take control of the underlying stream.
  
      Returns the underlying `.IOStream` object and stops all further
      HTTP processing.  May only be called during
      `.HTTPMessageDelegate.headers_received`.  Intended for implementing
      protocols like websockets that tunnel over an HTTP handshake.
      """
      self._clear_callbacks()
      stream = self.stream
      self.stream = None
      if not self._finish_future.done():
          self._finish_future.set_result(None)
      return stream
  
imports: from __future__ import absolute_import, division, print_function
  import re
  from tornado.concurrent import Future
  from tornado.escape import native_str, utf8
  from tornado import gen
  from tornado import httputil
  from tornado import iostream
  from tornado.log import gen_log, app_log
  from tornado import stack_context
  from tornado.util import GzipDecompressor, PY3
label_desc: Use image node_id 8 for calling the HTTP1Connection obj's underlying member method code with example usage: obj.detach() and returns: stream