Function that prints "Hello world!" in response to a GET request.
Explore further
For detailed documentation that includes this code sample, see the following:
- .NET Languages
- Create and deploy a Cloud Function (1st gen) by using the Google Cloud CLI
- Create and deploy a Cloud Function (2nd gen) by using the Google Cloud CLI
- Create and deploy a HTTP Cloud Function by using Java
- Create and deploy an HTTP Cloud Function with .NET
- HTTP Tutorial
- HTTP Tutorial (2nd gen)
- JVM Languages
Code sample
C#
Go
Java
Kotlin
Node.js
PHP
Python
Ruby
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.