class_docstr: An HTTP/1.x server.
class_docstr_tok: ["An","HTTP\/1.x","server","."]
docstr: Closes the connection.
  
  Returns a `.Future` that resolves after the serving loop has exited.
docstr_tok: ["Closes","the","connection",".","Returns","a","`",".Future","`","that","resolves","after","the","serving","loop","has","exited","."]
code: def close(self):
      """Closes the connection.
  
      Returns a `.Future` that resolves after the serving loop has exited.
      """
      self.stream.close()
      # Block until the serving loop is done, but ignore any exceptions
      # (start_serving is already responsible for logging them).
      try:
          yield self._serving_future
      except Exception:
          pass
  
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 2 for calling the HTTP1ServerConnection obj's underlying member method code with example usage: obj.close() without return types