WebFund 2016W: Assignment 2: Difference between revisions
Created page with "In this assignment you will be be extending the functionality of tinywebserver.js from Tutorial 2. There are ?? points in ?? questions. This as..." |
No edit summary |
||
Line 1: | Line 1: | ||
In this assignment you will be be extending the functionality of tinywebserver.js from [[WebFund 2016W: Tutorial 2|Tutorial 2]]. There are ?? points in ?? | '''This assignment is not yet finalized.''' | ||
In this assignment you will be be extending the functionality of tinywebserver.js from [[WebFund 2016W: Tutorial 2|Tutorial 2]]. There are ?? points in ?? tasks. This assignment is due on January 27, 2016. | |||
<!-- Please submit your answers as a single text or PDF file called "<username>-comp2406-assign3.txt" or "<username>-comp2406-assign3.pdf", where username is your MyCarletonOne username. The first four lines of this file should be "COMP 2406 Assignment 3", your name, student number, and the date. You may wish to format answers.txt in [http://en.wikipedia.org/wiki/Markdown Markdown] to improve its appearance. If you do so, you may convert your text file to PDF using [http://johnmacfarlane.net/pandoc/ pandoc]. | <!-- Please submit your answers as a single text or PDF file called "<username>-comp2406-assign3.txt" or "<username>-comp2406-assign3.pdf", where username is your MyCarletonOne username. The first four lines of this file should be "COMP 2406 Assignment 3", your name, student number, and the date. You may wish to format answers.txt in [http://en.wikipedia.org/wiki/Markdown Markdown] to improve its appearance. If you do so, you may convert your text file to PDF using [http://johnmacfarlane.net/pandoc/ pandoc]. | ||
Line 6: | Line 8: | ||
--> | --> | ||
Your modified version of tinywebserver.js should have the following functionality: | |||
# startup option -headers that has a comma-separated list of headers that should be logged on the console for each incoming request. | |||
# A configuration file <tt>tinyweb.cfg</tt> that allows for the port, document root directory, document aliases, and a custom 404 document. | |||
# | # A new 777 status code if there is a request for any document with the word "lucky" in its URL (path or document name). | ||
# | |||
# | |||
Revision as of 01:31, 19 January 2016
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:
- startup option -headers that has a comma-separated list of headers that should be logged on the console for each incoming request.
- A configuration file tinyweb.cfg that allows for the port, document root directory, document aliases, and a custom 404 document.
- A new 777 status code if there is a request for any document with the word "lucky" in its URL (path or document name).