parameters: (self)
docstring: Close the connection to the HTTP server.
docstring_summary: Close the connection to the HTTP server.
docstring_tokens: Close the connection to the HTTP server .
function: def close(self):
          """Close the connection to the HTTP server."""
          self.__state = _CS_IDLE
          try:
              sock = self.sock
              if sock:
                  self.sock = None
                  sock.close()   # close it manually... there may be other refs
          finally:
              response = self.__response
              if response:
                  self.__response = None
                  response.close()
function_tokens: def close ( self ) : self . __state = _CS_IDLE try : sock = self . sock if sock : self . sock = None sock . close ( ) # close it manually... there may be other refs finally : response = self . __response if response : self . __response = None response . close ( )