code: def parse_request(self):
          
  
          ret = BaseHTTPRequestHandler.parse_request(self)
          if ret:
              mname = self.path.lstrip('/').split('/')[0]
              mname = self.command + ('_' + mname if mname else '')
              if hasattr(self, 'do_' + mname):
                  self.command = mname
          return ret
docs: Override parse_request method to enrich basic functionality of `BaseHTTPRequestHandler` class
  
          Original class can only invoke do_GET, do_POST, do_PUT, etc method implementations if they are defined.
          But we would like to have at least some simple routing mechanism, i.e.:
          GET /uri1/part2 request should invoke `do_GET_uri1()`
          POST /other should invoke `do_POST_other()`
  
          If the `do_<REQUEST_METHOD>_<first_part_url>` method does not exists we'll fallback to original behavior.