Currently when run from the command line you can change the port and the encoding type. However, the variables are set as globals within the file instead of as class arguments. Given the HTTPServer takes a class as an argument and not an instance, I am not entirely certain how to modify the code to paramaterize the class in a way that would still make it usable with the BaseHTTPServer. The end result of this is that you are unable to modify the port and encoding used if you import the class. I am not normally a Python dev so I am not sure of an appropriate response to this issue.
Currently when run from the command line you can change the port and the encoding type. However, the variables are set as globals within the file instead of as class arguments. Given the HTTPServer takes a class as an argument and not an instance, I am not entirely certain how to modify the code to paramaterize the class in a way that would still make it usable with the BaseHTTPServer. The end result of this is that you are unable to modify the port and encoding used if you import the class. I am not normally a Python dev so I am not sure of an appropriate response to this issue.