You close connections, you end requests.
request.end();
Works.
request.close();
Will produce a type error such as:
request Object ... has no method 'close'
Read the docs!
You close connections, you end requests.
request.end();
Works.
request.close();
Will produce a type error such as:
request Object ... has no method 'close'
Read the docs!
I know this blog is a bit of a mess, but if you like my content and would like to learn more Haskell you should check out the Haskell Book!