WebFund 2016W: Assignment 2

From Soma-notes
Revision as of 21:31, 18 January 2016 by Soma (talk | contribs)
Jump to navigation Jump to search

This assignment is not yet finalized.

In this assignment you will be be extending the functionality of tinywebserver.js from Tutorial 2. There are ?? points in ?? tasks. This assignment is due on January 27, 2016.


Your modified version of tinywebserver.js should have the following functionality:

  1. startup option -headers that has a comma-separated list of headers that should be logged on the console for each incoming request.
  2. A configuration file tinyweb.cfg that allows for the port, document root directory, document aliases, and a custom 404 document.
  3. A new 777 status code if there is a request for any document with the word "lucky" in its URL (path or document name).