Invoking Cloud Functions
Cloud Functions are invoked by external events called triggers. These triggers relate to some external event. When the event occurs, the platform will invoke the function on your behalf. Functions can be divided into two groups based on the type of trigger used to invoke them: HTTP functions and background functions.
HTTP functions
HTTP functions are triggered remotely by performing an HTTP request on a Google provided URL. The invocation URL takes the following naming convention:
https://<REGION>-<PROJECT_ID>.cloudfunctions.net/<FUNCTION_NAME>
Note
While there is currently no direct way to modify HTTP function URLs, there are a number of methods for making functions available behind custom URLs. The simplest method for achieving this is by providing a simple forward proxy running on Compute Engine using technologies such as NGINX. Another approach is through the use of a Firebase application.
When a network request is made to this URL, the function will...