class_docstr: A blocking HTTP client.
  
  This interface is provided for convenience and testing; most applications
  that are running an IOLoop will want to use `AsyncHTTPClient` instead.
  Typical usage looks like this::
  
      http_client = httpclient.HTTPClient()
      try:
          response = http_client.fetch("http://www.google.com/")
          print(response.body)
      except httpclient.HTTPError as e:
          # HTTPError is raised for non-200 responses; the response
          # can be found in e.response.
          print("Error: " + str(e))
      except Exception as e:
          # Other errors are possible, such as IOError.
          print("Error: " + str(e))
      http_client.close()
class_docstr_tok: ["A","blocking","HTTP","client",".","This","interface","is","provided","for","convenience","and","testing",";","most","applications","that","are","running","an","IOLoop","will","want","to","use","`","AsyncHTTPClient","`","instead",".","Typical","usage","looks","like","this",":",":","http_client","=","httpclient.HTTPClient","(",")","try",":","response","=","http_client.fetch","(","``","http",":","\/\/www.google.com\/","''",")","print","(","response.body",")","except","httpclient.HTTPError","as","e",":","#","HTTPError","is","raised","for","non-200","responses",";","the","response","#","can","be","found","in","e.response",".","print","(","``","Error",":","``","+","str","(","e",")",")","except","Exception","as","e",":","#","Other","errors","are","possible",",","such","as","IOError",".","print","(","``","Error",":","``","+","str","(","e",")",")","http_client.close","(",")"]
docstr: Closes the HTTPClient, freeing any resources used.
code: def close(self):
      """Closes the HTTPClient, freeing any resources used."""
      if not self._closed:
          self._async_client.close()
          self._io_loop.close()
          self._closed = True
  
imports: from __future__ import absolute_import, division, print_function
  import functools
  import time
  import weakref
  from tornado.concurrent import TracebackFuture
  from tornado.escape import utf8, native_str
  from tornado import httputil, stack_context
  from tornado.ioloop import IOLoop
  from tornado.util import Configurable
label_desc: Use image node_id 3 for calling the HTTPClient obj's underlying member method code with example usage: obj.close() without return types