/demo_parsing_http_requests_in_node

Demo for parsing HTTP requests and basic routing in Node

Primary LanguageJavaScript

demo_parsing_http_requests_in_node

Demo shows:

  1. Using the URL library
  2. Setting route callbacks via method and path
  3. Extracting POST data from a request

Getting started

Run $ node app.js. If you wish you may set a different port with a subsequent command-line argument (e.g. $ node app.js 4000).