Created
June 23, 2022 02:45
-
-
Save bijukunjummen/22eba1616181f4b4d9c3998b6590a4a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.cloud.functions.HttpFunction; | |
| import com.google.cloud.functions.HttpRequest; | |
| import com.google.cloud.functions.HttpResponse; | |
| public class HelloHttp implements HttpFunction { | |
| @Override | |
| public void service(HttpRequest request, HttpResponse response) throws IOException { | |
| final BufferedWriter writer = response.getWriter(); | |
| response.setContentType("application/html"); | |
| writer.write("Hello World"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment