How to send a HTTP request from Google Cloud Functions (nodeJS) : <p>This is probably a simple question but I'm new to cloud functions/Node programming and haven't found the right documentation yet.  </p>

<p>How do I write a Google cloud function that will receive a HTTP request but then send a HTTP request to a different endpoint?  For example, I can send the HTTP trigger to my cloud function (<a href="https://us-central1-plugin-check-xxxx.cloudfunctions.net/HelloWorldTest" rel="noreferrer">https://us-central1-plugin-check-xxxx.cloudfunctions.net/HelloWorldTest</a>).  Later in the project I'll figure out how to implement a delay.  But then I want to respond with a new HTTP request to a different endpoint (<a href="https://maker.ifttt.com/trigger/arrive/with/key/xxxx" rel="noreferrer">https://maker.ifttt.com/trigger/arrive/with/key/xxxx</a>).  How do I do that?  </p>

<pre><code>exports.helloWorld = function helloWorld(req, res) {
  // Example input: {"message": "Hello!"}
  if (req.body.message === undefined) {
    // This is an error case, as "message" is required.
    res.status(400).send('No message defined!');
  } else {
    // Everything is okay.
    console.log(req.body.message);
    res.status(200).send('Success: ' + req.body.message);
    // ??? send a HTTP request to IFTTT endpoint here
  }
};
</code></pre>
