Break up server.py
into multiple modules
#28
Labels
good first issue
Good for newcomers
never-stale
server
Specific to the diffing server, rather than diff algorithms
web_monitoring_diff/server/server.py
is a pretty big and messy file. In this package, we’ve created aweb_monitoring_diff.server
subpackage so we can split that file up into multiple modules.Things we should break out:
The
MockRequest
/MockResponse
functionality for loading files.web-monitoring-diff/web_monitoring_diff/server/server.py
Lines 171 to 204 in 5e32488
Routing configuration.
web-monitoring-diff/web_monitoring_diff/server/server.py
Lines 40 to 76 in 5e32488
Other custom classes, e.g.
PublicError
:web-monitoring-diff/web_monitoring_diff/server/server.py
Lines 135 to 168 in 5e32488
Body decoding logic.
Possibly
DiffHandler
; it’s huge. It’s possible there are good ways to break it up, too.The text was updated successfully, but these errors were encountered: