parameters: (self)
docstring: Parse the next HTTP request start-line and message-headers.
docstring_summary: Parse the next HTTP request start-line and message-headers.
docstring_tokens: Parse the next HTTP request start - line and message - headers .
function: def parse_request(self):
          """Parse the next HTTP request start-line and message-headers."""
          self.rfile = SizeCheckWrapper(self.conn.rfile,
                                        self.server.max_request_header_size)
          try:
              success = self.read_request_line()
          except MaxSizeExceeded:
              self.simple_response("414 Request-URI Too Long",
                  "The Request-URI sent with the request exceeds the maximum "
                  "allowed bytes.")
              return
          else:
              if not success:
                  return
          
          try:
              success = self.read_request_headers()
          except MaxSizeExceeded:
              self.simple_response("413 Request Entity Too Large",
                  "The headers sent with the request exceed the maximum "
                  "allowed bytes.")
              return
          else:
              if not success:
                  return
          
          self.ready = True
function_tokens: def parse_request ( self ) : self . rfile = SizeCheckWrapper ( self . conn . rfile , self . server . max_request_header_size ) try : success = self . read_request_line ( ) except MaxSizeExceeded : self . simple_response ( "414 Request-URI Too Long" , "The Request-URI sent with the request exceeds the maximum " "allowed bytes." ) return else : if not success : return try : success = self . read_request_headers ( ) except MaxSizeExceeded : self . simple_response ( "413 Request Entity Too Large" , "The headers sent with the request exceed the maximum " "allowed bytes." ) return else : if not success : return self . ready = True