Especially with #21 in play, server.py is getting awfully large.
I'd like to split it up a little bit - Perhaps have a file to handle the configuration of the logger (from which we import the logger in server.py), and another to handle the MIME type guesser (from which we import mimeTypeOf) - This latter is significant because it separates a large portion of text away from the file, not because it's significantly semantically different.
Additionally, we could split out an aria.py, and/or an http.py (including the waitingRequest and the sendResponse family of functions), but those first two are the important ones (especially if another config setup is added for the mime type dictionary).
Especially with #21 in play,
server.pyis getting awfully large.I'd like to split it up a little bit - Perhaps have a file to handle the configuration of the logger (from which we import the logger in
server.py), and another to handle the MIME type guesser (from which we importmimeTypeOf) - This latter is significant because it separates a large portion of text away from the file, not because it's significantly semantically different.Additionally, we could split out an
aria.py, and/or anhttp.py(including thewaitingRequestand thesendResponsefamily of functions), but those first two are the important ones (especially if another config setup is added for the mime type dictionary).