• If a request comes in to the root path, look at accept header and
parse it. Check for hmtl, json, and text. If no known accept header
comes in, return text/plain
• Add route for /json that always returns json response
• Add route for /text that always returns text response
• Add route for /html that always returns html response
• Break file up to multiple files
• Can pass in headers through command line arguments, defaults for
checking X-Real-IP and X-Forwarded-For
• Add logging for requests with timing
• Add 404 support for missing URLs
TODO:
• Add arguments to app for port and address
• Add x-forwarded-for header support for use behind proxies
• Be able to give response in text, json or html