S
S
Sergey Yaroshuk2017-07-25 21:04:19
Node.js
Sergey Yaroshuk, 2017-07-25 21:04:19

Node: 'close' event on req and res?

Please help me with the question of the 'close' event for request and response in the http module in the node, what does it mean for these objects. The hitch arose when studying streams, somewhere the destroy () of the stream is hung on the 'close' event of req, and somewhere in res. In what all the same event it is necessary to destroy a flow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-07-25
@RidgeA

response:
https://nodejs.org/api/http.html#http_event_close_1
request:
https://nodejs.org/api/http.html#http_event_close_2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question