adafruit / Adafruit_CircuitPython_HTTPServer

Simple HTTP Server for CircuitPython
MIT License
46 stars 30 forks source link

Refactor library into class files #8

Closed karlfl closed 2 years ago

karlfl commented 2 years ago

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 commented 2 years ago

As an aside, see #17.