parameters: (self)
docstring: Handle a single HTTP request.
  
          You normally don't need to override this method; see the class
          __doc__ string for information on how to handle specific HTTP
          commands such as GET and POST.
docstring_summary: Handle a single HTTP request.
docstring_tokens: Handle a single HTTP request .
function: def handle_one_request(self):
          """Handle a single HTTP request.
  
          You normally don't need to override this method; see the class
          __doc__ string for information on how to handle specific HTTP
          commands such as GET and POST.
  
          """
          try:
              self.raw_requestline = self.rfile.readline(65537)
              if len(self.raw_requestline) > 65536:
                  self.requestline = ''
                  self.request_version = ''
                  self.command = ''
                  self.send_error(414)
                  return
              if not self.raw_requestline:
                  self.close_connection = 1
                  return
              if not self.parse_request():
                  # An error code has been sent, just exit
                  return
              mname = 'do_' + self.command
              if not hasattr(self, mname):
                  self.send_error(501, "Unsupported method (%r)" % self.command)
                  return
              method = getattr(self, mname)
              method()
              self.wfile.flush() #actually send the response if not already done.
          except socket.timeout:
              #a read or a write timed out.  Discard this connection
              self.log_error("Request timed out: %r", sys.exc_info()[1])
              self.close_connection = 1
              return
function_tokens: def handle_one_request ( self ) : try : self . raw_requestline = self . rfile . readline ( 65537 ) if len ( self . raw_requestline ) > 65536 : self . requestline = '' self . request_version = '' self . command = '' self . send_error ( 414 ) return if not self . raw_requestline : self . close_connection = 1 return if not self . parse_request ( ) : # An error code has been sent, just exit return mname = 'do_' + self . command if not hasattr ( self , mname ) : self . send_error ( 501 , "Unsupported method (%r)" % self . command ) return method = getattr ( self , mname ) method ( ) self . wfile . flush ( ) #actually send the response if not already done. except socket . timeout : #a read or a write timed out.  Discard this connection self . log_error ( "Request timed out: %r" , sys . exc_info ( ) [ 1 ] ) self . close_connection = 1 return