Skip to content

Cant change parameters if imported. #6

@ksmith97

Description

@ksmith97

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions