Is node http request actually fired after req.end or after http.request ?
Context: I am using node js http module and wanted to understand what happens between:
- var req = http.request(options)
- // Register handler events
- req.end();
Can node open socket and start dns look up before req.end() Or req.end() is to just suggest that no more data needs to be sent ?
From documentation "With http.request() one must always call req.end() to signify the end of the request - even if there is no data being written to the request body." I am not sure what to make out of this ?