Skip to content

Refactor library into class files #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
karlfl opened this issue Jul 17, 2022 · 1 comment · Fixed by #25
Closed

Refactor library into class files #8

karlfl opened this issue Jul 17, 2022 · 1 comment · Fixed by #25

Comments

@karlfl
Copy link
Contributor

karlfl commented Jul 17, 2022

The library could benefit from a simple extract of the classes into their own .py files. This will provide for easier maintenance and future expansion of the library. It should be possible to do this in a way that doesn't break existing code.

Something like this...

  1. adafruit_httpserver.py - remove/replace with the following folder
  2. adafruit_httpserver (new folder)
    • __init__.py
    • httprequest.py
    • httpresponse.py
    • httpserver.py
    • httpstatus.py
    • mimetype.py
@dhalbert
Copy link
Contributor

As an aside, see #17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants