Raynos / http-framework

A web framework based purely on require('http')
MIT License
523 stars 47 forks source link

Parsing received data #27

Open alandarev opened 9 years ago

alandarev commented 9 years ago

Granted I want to use simple middleware to parse arguments submitted to the server. Shall I use multipart example, or there is no appropriate example yet?

Raynos commented 9 years ago

If you want to parse the querystring then require('querystring').

If you want to parse the body then require('body')

If you want to handle people that POST actual files using <input type='file'> in the browser, use a multipart file parser.

alandarev commented 9 years ago

Okay, then there is no module in http-framework dedicated to handling these already simple tasks? Got ya :+1: