Google Cloud Functions support two types of function:
- HTTP Functions: HTTP Functions will let you invoke your Google Cloud Function using standard HTTP(s) requests. These requests wait for the HTTP response and they support common HTTP request methods such as PUT, GET, DELETE and POST. Google Cloud Functions automatically provisions a TLS certificate, which lets you invoke your HTTP Google Cloud Functions using a secure connection. To allow seamless integration with HTTP requests, HTTP-based Google Cloud Functions allows HTTP semantics such as request and response objects. These request and response objects have the same properties as the Express.js (https://expressjs.com/) Node.js framework.
An example ...