Procedures to deal with http request in server-side with nodejs