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","."]
code: def _on_write_complete(self, future):
      exc = future.exception()
      if exc is not None and not isinstance(
          exc, iostream.StreamClosedError
      ):
          future.result()
      if self._write_callback is not None:
          callback = self._write_callback
          self._write_callback = None
          self.stream.io_loop.add_callback(callback)
      if self._write_future is not None:
          future = self._write_future
          self._write_future = None
          future.set_result(None)
  
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 15 for calling the HTTP1Connection obj's underlying member method code with example usage: obj._on_write_complete(future) without return types