Source Code

https://hook.io/examples/echo

These examples can be run directly in the browser or from any client which speaks HTTP.
You can also send data using tools like cURL.

Code

module['exports'] = function helloWorld (req, res) {
  // req is a Node.js http.IncomingMessage
  var host = req.host;
  // res is a Node.js httpServer.ServerResponse
  // Respond to the request with a simple string
  console.log('sent to the /logs endpoint');
  res.json(req.params);
};

To make your own copy of this service or "Fork" it simply click the button. You will need to register for a Free Account, but it's very quick and easy!