You are reading a single comment by @Mr.Peu and its replies. Click here to read the full conversation.
  • Is that normal that a function as only parameter of response.end is not called. I was expecting the same behavior as on Node .

    http.createServer(function (req, res) {
          //...
          res.end(function(){
            // never called
            console.log('GET done.');
            digitalWrite(LED2,0);
          });
    }
    

    I don't find the sources of http module. But it seems to always consider first arg as data.

    Is there another way to achieve this?

About

Avatar for Mr.Peu @Mr.Peu started